mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00: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 a new issue