mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -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
@@ -55,11 +55,6 @@ func newListenerLogger(listenerArn, targetAddr string) (*listenerLogger, error)
|
||||
return &listenerLogger{lcLog, lc}, nil
|
||||
}
|
||||
|
||||
func (lc listenerConn) Close() {
|
||||
// ignore closing errors
|
||||
_ = lc.Client.Close()
|
||||
}
|
||||
|
||||
// send event to target server via rpc client calls.
|
||||
func (lc listenerConn) Fire(entry *logrus.Entry) error {
|
||||
notificationEvent, ok := entry.Data["Records"].([]NotificationEvent)
|
||||
|
||||
Reference in New Issue
Block a user