mirror of
https://github.com/minio/minio.git
synced 2025-03-31 17:53:43 -04:00
fix(cmd/notification.go): no error when retry successful (#18530)
This commit is contained in:
parent
9cb94eb4a9
commit
95d6f43cc8
@ -31,10 +31,11 @@ import (
|
|||||||
"github.com/cespare/xxhash/v2"
|
"github.com/cespare/xxhash/v2"
|
||||||
"github.com/klauspost/compress/zip"
|
"github.com/klauspost/compress/zip"
|
||||||
"github.com/minio/madmin-go/v3"
|
"github.com/minio/madmin-go/v3"
|
||||||
"github.com/minio/minio/internal/bucket/bandwidth"
|
|
||||||
"github.com/minio/minio/internal/logger"
|
|
||||||
xnet "github.com/minio/pkg/v2/net"
|
xnet "github.com/minio/pkg/v2/net"
|
||||||
"github.com/minio/pkg/v2/sync/errgroup"
|
"github.com/minio/pkg/v2/sync/errgroup"
|
||||||
|
|
||||||
|
"github.com/minio/minio/internal/bucket/bandwidth"
|
||||||
|
"github.com/minio/minio/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file contains peer related notifications. For sending notifications to
|
// This file contains peer related notifications. For sending notifications to
|
||||||
@ -98,6 +99,7 @@ func (g *NotificationGroup) Go(ctx context.Context, f func() error, index int, a
|
|||||||
Host: addr,
|
Host: addr,
|
||||||
}
|
}
|
||||||
for i := 0; i < g.retryCount; i++ {
|
for i := 0; i < g.retryCount; i++ {
|
||||||
|
g.errs[index].Err = nil
|
||||||
if err := f(); err != nil {
|
if err := f(); err != nil {
|
||||||
g.errs[index].Err = err
|
g.errs[index].Err = err
|
||||||
// Last iteration log the error.
|
// Last iteration log the error.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user