aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_remote_sync.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/command/filer_remote_sync.go
parentb04865974905c2b31eb23b966df6386172e5ba50 (diff)
downloadseaweedfs-81fdf3651b1f60642fc15bd2b55ed0bd31afac15.tar.xz
seaweedfs-81fdf3651b1f60642fc15bd2b55ed0bd31afac15.zip
grpc connection to filer add sw-client-id header
Diffstat (limited to 'weed/command/filer_remote_sync.go')
-rw-r--r--weed/command/filer_remote_sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_remote_sync.go b/weed/command/filer_remote_sync.go
index d22fd57f8..261e024a6 100644
--- a/weed/command/filer_remote_sync.go
+++ b/weed/command/filer_remote_sync.go
@@ -26,7 +26,7 @@ type RemoteSyncOptions struct {
var _ = filer_pb.FilerClient(&RemoteSyncOptions{})
func (option *RemoteSyncOptions) WithFilerClient(streamingMode bool, fn func(filer_pb.SeaweedFilerClient) error) error {
- return pb.WithFilerClient(streamingMode, pb.ServerAddress(*option.filerAddress), option.grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
+ return pb.WithFilerClient(streamingMode, option.clientId, pb.ServerAddress(*option.filerAddress), option.grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
return fn(client)
})
}