aboutsummaryrefslogtreecommitdiff
path: root/weed/replication/replicator.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-01-20 01:48:12 -0800
committerchrislu <chris.lu@gmail.com>2023-01-20 01:48:12 -0800
commit81fdf3651b1f60642fc15bd2b55ed0bd31afac15 (patch)
tree19129015db907153d6aa89058c621e2bf93a6bae /weed/replication/replicator.go
parentb04865974905c2b31eb23b966df6386172e5ba50 (diff)
downloadseaweedfs-81fdf3651b1f60642fc15bd2b55ed0bd31afac15.tar.xz
seaweedfs-81fdf3651b1f60642fc15bd2b55ed0bd31afac15.zip
grpc connection to filer add sw-client-id header
Diffstat (limited to 'weed/replication/replicator.go')
-rw-r--r--weed/replication/replicator.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/replication/replicator.go b/weed/replication/replicator.go
index cd2b416f9..57aa63e5f 100644
--- a/weed/replication/replicator.go
+++ b/weed/replication/replicator.go
@@ -92,7 +92,7 @@ func (r *Replicator) Replicate(ctx context.Context, key string, message *filer_p
}
func ReadFilerSignature(grpcDialOption grpc.DialOption, filer pb.ServerAddress) (filerSignature int32, readErr error) {
- if readErr = pb.WithFilerClient(false, filer, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
+ if readErr = pb.WithFilerClient(false, 0, filer, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
if resp, err := client.GetFilerConfiguration(context.Background(), &filer_pb.GetFilerConfigurationRequest{}); err != nil {
return fmt.Errorf("GetFilerConfiguration %s: %v", filer, err)
} else {