Example #1
0
// MakeNodeIDKey returns the gossip key for node ID info.
func MakeNodeIDKey(nodeID proto.NodeID) string {
	return MakeKey(KeyNodeIDPrefix, nodeID.String())
}
Example #2
0
// MakeCapacityKey returns the gossip key for the given store's capacity.
func MakeCapacityKey(nodeID proto.NodeID, storeID proto.StoreID) string {
	return MakeKey(KeyCapacityPrefix, nodeID.String(), "-", storeID.String())
}