提交 ea54a6b2 编写于 作者: C chainhelen 提交者: Derek Parker

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

Use the defination of Server interface in service package, instead of
temporary in func.
上级 ca059672
......@@ -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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册