mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Don't close socket while re-initializing notify-listeners, as the rpc client object is shared between notify-listeners and peer clients. Also, improves SendRPC() readability by using GetPeerClient().
This commit is contained in:
committed by
Harshavardhana
parent
334cdb5d64
commit
d02cb963d5
@@ -210,10 +210,6 @@ func (en *eventNotifier) SetBucketListenerConfig(bucket string, lcfg []listenerC
|
||||
} else {
|
||||
en.internal.listenerConfigs[bucket] = lcfg
|
||||
}
|
||||
// close all existing loggers and initialize again.
|
||||
for _, v := range en.internal.targets {
|
||||
v.lconn.Close()
|
||||
}
|
||||
en.internal.targets = make(map[string]*listenerLogger)
|
||||
for _, lc := range lcfg {
|
||||
logger, err := newListenerLogger(lc.TopicConfig.TopicARN,
|
||||
|
||||
Reference in New Issue
Block a user