pass reference of master server

SendHeartbeat passes lock by value: weed_server.MasterServer contains
sync.Mutex
This commit is contained in:
Chris Lu 2018-05-27 11:58:00 -07:00
parent 8b0718ac92
commit 5b844d7011

View file

@ -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 {