mirror of
https://github.com/minio/minio.git
synced 2025-04-19 18:17:30 -04:00
fix: regression from refactor in AMQP notification (#14455)
fixes a regression introduced in #14269 that refactored the notification registration logic, all the amqp targets however online will not be available for use anymore. fixes #14451
This commit is contained in:
parent
7e803adf13
commit
f6875bb893
@ -138,6 +138,12 @@ func fetchSubSysTargets(ctx context.Context, cfg config.Config,
|
|||||||
}
|
}
|
||||||
_ = newTarget.Close()
|
_ = newTarget.Close()
|
||||||
}
|
}
|
||||||
|
if err = targetList.Add(newTarget); err != nil {
|
||||||
|
logger.LogIf(context.Background(), err)
|
||||||
|
if returnOnTargetError {
|
||||||
|
return targetsOffline, err
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case config.NotifyESSubSys:
|
case config.NotifyESSubSys:
|
||||||
esTargets, err := GetNotifyES(cfg[config.NotifyESSubSys], transport)
|
esTargets, err := GetNotifyES(cfg[config.NotifyESSubSys], transport)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user