示例#1
0
// MakeStoreKey returns the gossip key for the given store.
func MakeStoreKey(storeID proto.StoreID) string {
	return MakeKey(KeyStorePrefix, storeID.String())
}
示例#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())
}