diff options
| author | Ryan Russell <ryanrussell@users.noreply.github.com> | 2022-09-15 04:04:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-15 02:04:29 -0700 |
| commit | 92658b05a8bee8628fd3be232a86a62d1640d738 (patch) | |
| tree | 83c529c8394842a2e209ad343bcd22e8177394dd | |
| parent | a6359738478213ce67c15491d3900c406206f20e (diff) | |
| download | seaweedfs-92658b05a8bee8628fd3be232a86a62d1640d738.tar.xz seaweedfs-92658b05a8bee8628fd3be232a86a62d1640d738.zip | |
refactor(volume_grpc_client_to_master): `grpcConection` -> `grpcConne… (#3690)
refactor(volume_grpc_client_to_master): `grpcConection` -> `grpcConnection`
Signed-off-by: Ryan Russell <git@ryanrussell.org>
Signed-off-by: Ryan Russell <git@ryanrussell.org>
| -rw-r--r-- | weed/server/volume_grpc_client_to_master.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/server/volume_grpc_client_to_master.go b/weed/server/volume_grpc_client_to_master.go index 3849eac19..49058c5b6 100644 --- a/weed/server/volume_grpc_client_to_master.go +++ b/weed/server/volume_grpc_client_to_master.go @@ -94,13 +94,13 @@ func (vs *VolumeServer) doHeartbeat(masterAddress pb.ServerAddress, grpcDialOpti ctx, cancel := context.WithCancel(context.Background()) defer cancel() - grpcConection, err := pb.GrpcDial(ctx, masterAddress.ToGrpcAddress(), false, grpcDialOption) + grpcConnection, err := pb.GrpcDial(ctx, masterAddress.ToGrpcAddress(), false, grpcDialOption) if err != nil { return "", fmt.Errorf("fail to dial %s : %v", masterAddress, err) } - defer grpcConection.Close() + defer grpcConnection.Close() - client := master_pb.NewSeaweedClient(grpcConection) + client := master_pb.NewSeaweedClient(grpcConnection) stream, err := client.SendHeartbeat(ctx) if err != nil { glog.V(0).Infof("SendHeartbeat to %s: %v", masterAddress, err) |
