Browse Source

rename session New func

pull/15/head
Jason 5 years ago
parent
commit
d2e0460eac
  1. 2
      cmd/main_session.go
  2. 2
      component/session/server.go

2
cmd/main_session.go

@ -15,7 +15,7 @@ func init() {
registerInitFn(func() {
if *args.EnableMonitor {
monitor = session.NewServer()
monitor = session.New()
// Set session variables
session.ServeAddr = *args.MonitorAddr

2
component/session/server.go

@ -34,7 +34,7 @@ type Server struct {
completedSessions []Session
}
func NewServer() *Server {
func New() *Server {
return &Server{}
}

Loading…
Cancel
Save