Remove emitter (#184)

* Remove emitter
This commit is contained in:
Jonas Plum
2022-05-14 01:08:37 +02:00
committed by GitHub
parent 894e607efb
commit dfb501f8b9
31 changed files with 126 additions and 500 deletions
+5 -6
View File
@@ -2,7 +2,6 @@ package service
import (
"context"
"log"
"github.com/arangodb/go-driver"
@@ -34,10 +33,10 @@ func (s *Service) publishRequest(ctx context.Context, err error, function string
userID = user.ID
}
go func() {
if err := s.bus.PublishRequest(userID, function, ids); err != nil {
log.Println(err)
}
}()
s.bus.RequestChannel.Publish(&bus.RequestMsg{
User: userID,
Function: function,
IDs: ids,
})
}
}