1 parent
7e52a01d3d
commit
d35f74355f
3 files changed
+14
-7
No files matched your search
@@ -223,8 +223,11 @@ func (s *Service) execute(ctx context.Context, id, token string, actor config.Au
|
||||
item.targetConfig = config.DatabaseConfig{}
|
||||
s.mu.Unlock()
|
||||
|
||||
releaseRequests := s.drainRequests(ctx)
|
||||
releaseRequests, drainErr := s.drainRequests(ctx)
|
||||
defer releaseRequests()
|
||||
if drainErr != nil {
|
||||
return s.fail(id, drainErr)
|
||||
}
|
||||
if err := contextError(ctx); err != nil {
|
||||
return s.fail(id, err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user