Migrate to Go 1.18 (#45)

* Migrate to Go 1.18 and add linters
This commit is contained in:
Jonas Plum
2022-03-20 03:17:18 +01:00
committed by GitHub
parent 03a4806d45
commit 2bad1f5f28
88 changed files with 1430 additions and 868 deletions

View File

@@ -2,6 +2,7 @@ package service
import (
"context"
"log"
"github.com/arangodb/go-driver"
@@ -33,6 +34,10 @@ func (s *Service) publishRequest(ctx context.Context, err error, function string
userID = user.ID
}
go s.bus.PublishRequest(userID, function, ids)
go func() {
if err := s.bus.PublishRequest(userID, function, ids); err != nil {
log.Println(err)
}
}()
}
}