Skip to content

Commit 2646a0a

Browse files
committed
Remove unused acceptSignals in migrator
1 parent 3dd0c50 commit 2646a0a

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

go/logic/migrator.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ import (
1010
"io"
1111
"math"
1212
"os"
13-
"os/signal"
1413
"strings"
1514
"sync/atomic"
16-
"syscall"
1715
"time"
1816

1917
"github.com/github/gh-ost/go/base"
@@ -103,21 +101,6 @@ func NewMigrator() *Migrator {
103101
return migrator
104102
}
105103

106-
// acceptSignals registers for OS signals
107-
func (this *Migrator) acceptSignals() {
108-
c := make(chan os.Signal, 1)
109-
110-
signal.Notify(c, syscall.SIGHUP)
111-
go func() {
112-
for sig := range c {
113-
switch sig {
114-
case syscall.SIGHUP:
115-
log.Debugf("Received SIGHUP. Reloading configuration")
116-
}
117-
}
118-
}()
119-
}
120-
121104
// initiateHooksExecutor
122105
func (this *Migrator) initiateHooksExecutor() (err error) {
123106
this.hooksExecutor = NewHooksExecutor()

0 commit comments

Comments
 (0)