mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-18 14:41:31 +08:00
pass reference of master server
SendHeartbeat passes lock by value: weed_server.MasterServer contains sync.Mutex
This commit is contained in:
parent
8b0718ac92
commit
5b844d7011
@ -11,7 +11,7 @@ import (
|
||||
"google.golang.org/grpc/peer"
|
||||
)
|
||||
|
||||
func (ms MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error {
|
||||
func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error {
|
||||
var dn *topology.DataNode
|
||||
t := ms.Topo
|
||||
for {
|
||||
|
Loading…
Reference in New Issue
Block a user