Browse Source

avoid retry delay

pull/1189/head
Chris Lu 5 years ago
parent
commit
c8d543ef51
  1. 1
      weed/filesys/wfs.go

1
weed/filesys/wfs.go

@ -99,7 +99,6 @@ func (wfs *WFS) WithFilerClient(ctx context.Context, fn func(context.Context, fi
return nil return nil
} }
if strings.Contains(err.Error(), "context canceled") { if strings.Contains(err.Error(), "context canceled") {
time.Sleep(3337 * time.Millisecond)
glog.V(2).Infoln("retry context canceled request...") glog.V(2).Infoln("retry context canceled request...")
return util.WithCachedGrpcClient(context.Background(), func(ctx2 context.Context, grpcConnection *grpc.ClientConn) error { return util.WithCachedGrpcClient(context.Background(), func(ctx2 context.Context, grpcConnection *grpc.ClientConn) error {
client := filer_pb.NewSeaweedFilerClient(grpcConnection) client := filer_pb.NewSeaweedFilerClient(grpcConnection)

Loading…
Cancel
Save