File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,9 @@ func (rt *Handle) commitStatusList(workerJobStatuses *[]workerJobStatus) {
299
299
if rt .throttlerFactory != nil {
300
300
rt .throttlerFactory .Get (rt .destType , parameters .DestinationID ).ResponseCodeReceived (errorCode ) // send response code to throttler
301
301
} else {
302
- rt .logger .Debugf ("[%v Router] :: ThrottlerFactory is nil. Not sending response code to throttler" , rt .destType )
302
+ rt .logger .Debugf (`[%v Router] :: ThrottlerFactory is nil. Not throttling destination with ID %s` ,
303
+ rt .destType , parameters .DestinationID ,
304
+ )
303
305
}
304
306
// Update metrics maps
305
307
// REPORTING - ROUTER - START
Original file line number Diff line number Diff line change @@ -350,7 +350,9 @@ func (rt *Handle) Shutdown() {
350
350
rt .backgroundCancel ()
351
351
352
352
<- rt .startEnded // wait for all workers to stop first
353
- rt .throttlerFactory .Shutdown ()
353
+ if rt .throttlerFactory != nil {
354
+ rt .throttlerFactory .Shutdown ()
355
+ }
354
356
close (rt .responseQ ) // now it is safe to close the response channel
355
357
_ = rt .backgroundWait ()
356
358
}
You can’t perform that action at this time.
0 commit comments