diff options
-rw-r--r-- | docker-compose.yml | 4 | ||||
-rw-r--r-- | services_controller.go | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index b43ec5b..b22c4a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,12 +3,14 @@ services: mongo: image: mongo:4 + ports: + - "27017:27017" networks: - acheronet restart: always caronte: - image: eciavatta/caronte:latest + image: caronte ports: - "3333:3333" depends_on: diff --git a/services_controller.go b/services_controller.go index 566f6ba..aea4693 100644 --- a/services_controller.go +++ b/services_controller.go @@ -86,12 +86,8 @@ func (sc *ServicesController) DeleteService(c context.Context, service Service) defer sc.mutex.Unlock() if err := sc.storage.Delete(Services).Context(c).Filter(OrderedDocument{{"_id", service.Port}}).One(); err != nil { - log.Println(service) - log.Println(err) return errors.New(err.Error()) } else { - log.Println(err) - log.Println(sc.services) delete(sc.services, service.Port) return nil } |