cmd,service: remove temporary def of Server interface in func

Use the defination of Server interface in service package, instead of
temporary in func.
This commit is contained in:
chainhelen 2018-10-09 14:09:01 +08:00 committed by Derek Parker
parent ca0596724f
commit ea54a6b2af
2 changed files with 2 additions and 5 deletions

@ -510,10 +510,7 @@ func execute(attachPid int, processArgs []string, conf *config.Config, coreFile
}
defer listener.Close()
var server interface {
Run() error
Stop() error
}
var server service.Server
disconnectChan := make(chan struct{})

@ -4,5 +4,5 @@ package service
// to connect to.
type Server interface {
Run() error
Stop(bool) error
Stop() error
}