Remove no longer needed acceptSignals func
This commit is contained in:
parent
b399533d4f
commit
7412f42371
@ -10,10 +10,8 @@ import (
|
||||
"io"
|
||||
"math"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/github/gh-ost/go/base"
|
||||
@ -103,21 +101,6 @@ func NewMigrator(context *base.MigrationContext) *Migrator {
|
||||
return migrator
|
||||
}
|
||||
|
||||
// acceptSignals registers for OS signals
|
||||
func (this *Migrator) acceptSignals() {
|
||||
c := make(chan os.Signal, 1)
|
||||
|
||||
signal.Notify(c, syscall.SIGHUP)
|
||||
go func() {
|
||||
for sig := range c {
|
||||
switch sig {
|
||||
case syscall.SIGHUP:
|
||||
log.Debugf("Received SIGHUP. Reloading configuration")
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
// initiateHooksExecutor
|
||||
func (this *Migrator) initiateHooksExecutor() (err error) {
|
||||
this.hooksExecutor = NewHooksExecutor(this.migrationContext)
|
||||
|
Loading…
Reference in New Issue
Block a user