|
|
|
@ -39,12 +39,12 @@ func (srv *UIService) Addr() string { |
|
|
|
|
return srv.srv.Addr |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (srv *UIService) ListenAndServe() { |
|
|
|
|
func (srv *UIService) ListenAndServe() error { |
|
|
|
|
if !srv.inited { |
|
|
|
|
srv.init() |
|
|
|
|
} |
|
|
|
|
log.Println("Listening on %v", srv.srv.Addr) |
|
|
|
|
srv.srv.ListenAndServe() |
|
|
|
|
log.Printf("Listening on %v\n", srv.srv.Addr) |
|
|
|
|
return srv.srv.ListenAndServe() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (srv *UIService) Shutdown(ctx context.Context) error { |
|
|
|
|