// delete master node func deleteMaster(netplugin *plugin.NetPlugin, srvInfo core.ServiceInfo) error { // delete from the db delete(masterDB, masterKey(srvInfo)) // tel plugin about it return netplugin.DeleteMaster(srvInfo) }
// delete master node func deleteMaster(netplugin *plugin.NetPlugin, srvInfo objdb.ServiceInfo) error { // delete from the db delete(MasterDB, masterKey(srvInfo)) // tel plugin about it return netplugin.DeleteMaster(core.ServiceInfo{ HostAddr: srvInfo.HostAddr, Port: netmasterRPCPort, }) }