mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
make notification as separate package (#5294)
* Remove old notification files * Add net package * Add event package * Modify minio to take new notification system
This commit is contained in:
+7
-3
@@ -462,9 +462,13 @@ func GetLocalPeer(endpoints EndpointList) (localPeer string) {
|
||||
}
|
||||
}
|
||||
if peerSet.IsEmpty() {
|
||||
// If local peer is empty can happen in FS or Erasure coded mode.
|
||||
// then set the value to globalMinioAddr instead.
|
||||
return globalMinioAddr
|
||||
// Local peer can be empty in FS or Erasure coded mode.
|
||||
// If so, return globalMinioHost + globalMinioPort value.
|
||||
if globalMinioHost != "" {
|
||||
return globalMinioHost + ":" + globalMinioPort
|
||||
}
|
||||
|
||||
return "127.0.0.1:" + globalMinioPort
|
||||
}
|
||||
return peerSet.ToSlice()[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user