diff --git a/pkg/mining/service.go b/pkg/mining/service.go index 7389d47..873dcd2 100644 --- a/pkg/mining/service.go +++ b/pkg/mining/service.go @@ -394,7 +394,7 @@ var wsUpgrader = websocket.Upgrader{ }, } -// NewService creates a new mining service +// svc, err := mining.NewService(mgr, ":9090", "localhost:9090", "api/v1/mining") func NewService(manager ManagerInterface, listenAddr string, displayAddr string, swaggerNamespace string) (*Service, error) { apiBasePath := "/" + strings.Trim(swaggerNamespace, "/") swaggerUIPath := apiBasePath + "/swagger"