Remove global ServerService variable

This variable didn't seem to be used anyway, so no further changes were
required.
This commit is contained in:
Tyler Compton 2019-08-19 16:23:33 -07:00
parent 6277af4790
commit 5fc7b3ceb5
2 changed files with 0 additions and 3 deletions

View File

@ -203,7 +203,6 @@ func runServer(cfg config.ServerCommonConf) (err error) {
return err return err
} }
log.Info("Start frps success") log.Info("Start frps success")
server.ServerService = svr
svr.Run() svr.Run()
return return
} }

View File

@ -51,8 +51,6 @@ const (
connReadTimeout time.Duration = 10 * time.Second connReadTimeout time.Duration = 10 * time.Second
) )
var ServerService *Service
// Server service // Server service
type Service struct { type Service struct {
// Dispatch connections to different handlers listen on same port // Dispatch connections to different handlers listen on same port