chore: refactoring (#2182)

This commit is contained in:
Kevin Wan
2022-07-22 23:16:38 +08:00
committed by GitHub
parent 34eb3fc12e
commit 92145b56dc
3 changed files with 14 additions and 14 deletions

View File

@@ -41,12 +41,12 @@ type keepAliveServer struct {
Server
}
func (ags keepAliveServer) Start(fn RegisterFn) error {
if err := ags.registerEtcd(); err != nil {
func (s keepAliveServer) Start(fn RegisterFn) error {
if err := s.registerEtcd(); err != nil {
return err
}
return ags.Server.Start(fn)
return s.Server.Start(fn)
}
func figureOutListenOn(listenOn string) string {