|
|
@ -61,7 +61,7 @@ type MasterServer struct { |
|
|
|
|
|
|
|
Topo *topology.Topology |
|
|
|
vg *topology.VolumeGrowth |
|
|
|
vgCh chan *topology.VolumeGrowRequest |
|
|
|
volumeGrowthRequestChan chan *topology.VolumeGrowRequest |
|
|
|
|
|
|
|
boundedLeaderChan chan int |
|
|
|
|
|
|
@ -107,7 +107,7 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers map[string]pb.Se |
|
|
|
ms := &MasterServer{ |
|
|
|
option: option, |
|
|
|
preallocateSize: preallocateSize, |
|
|
|
vgCh: make(chan *topology.VolumeGrowRequest, 1<<6), |
|
|
|
volumeGrowthRequestChan: make(chan *topology.VolumeGrowRequest, 1<<6), |
|
|
|
clientChans: make(map[string]chan *master_pb.KeepConnectedResponse), |
|
|
|
grpcDialOption: grpcDialOption, |
|
|
|
MasterClient: wdclient.NewMasterClient(grpcDialOption, "", cluster.MasterType, option.Master, "", "", *pb.NewServiceDiscoveryFromMap(peers)), |
|
|
|