mirror of
https://github.com/minio/minio.git
synced 2025-12-01 13:52:34 -05:00
re-use remote transports in Peer,Storage,Locker clients (#10788)
use one transport for internode communication
This commit is contained in:
@@ -300,14 +300,12 @@ func LogIf(ctx context.Context, err error, errKind ...interface{}) {
|
||||
return
|
||||
}
|
||||
|
||||
if errors.Is(err, context.Canceled) || errors.Is(err, http.ErrServerClosed) {
|
||||
if errors.Is(err, context.Canceled) {
|
||||
return
|
||||
}
|
||||
|
||||
if e := errors.Unwrap(err); e != nil {
|
||||
if e.Error() == "disk not found" {
|
||||
return
|
||||
}
|
||||
if err.Error() == http.ErrServerClosed.Error() || err.Error() == "disk not found" {
|
||||
return
|
||||
}
|
||||
|
||||
logIf(ctx, err, errKind...)
|
||||
|
||||
Reference in New Issue
Block a user