func CleanClientEkgsShort(ekgs []string, c stypes.Client) error {
	cidi := c.ClientId().Uint64()
	ekgLock.Lock()
	defer ekgLock.Unlock()

	for _, keyb := range ekgs {
		delete(ekgKeyToClientIdsNames[keyb], cidi)
	}
	delete(ekgClientIdToKeysNames, cidi)

	return nil
}
// Shortcut for CleanClientEkgs is we've already called EkgsForClient before and
// we simply want to pass that result in and not call it again. Note that this
// function deletes all record of ekgs for the given client, so the ekgs passed
// in must comprise ALL the ekgs the client is hooked up to
Shortcut for CleanClientEkgs is we've already called EkgsForClient before and
we simply want to pass that result in and not call it again. Note that this
function deletes all record of ekgs for the given client, so the ekgs passed
in must comprise ALL the ekgs the client is hooked up to
// Shortcut for CleanClientEkgs is we ' ve already called EkgsForClient before and // we simply want to pass that result in and not call it again . Note that this // function deletes all record of ekgs for the given client so the ekgs passed // in must comprise ALL the ekgs the client is hooked up to
func CleanClientEkgsShort(ekgs []string, c stypes.Client) error {
	cidi := c.ClientId().Uint64()
	ekgLock.Lock()
	defer ekgLock.Unlock()
	for _, keyb := range ekgs {
		delete(ekgKeyToClientIdsNames[keyb], cidi)
	}
	delete(ekgClientIdToKeysNames, cidi)
	return nil
}
func CleanClientEkgsShort ( ekgs [ ] string , c stypes . Client ) error { cidi := c . ClientId ( ) . Uint64 ( ) ekgLock . Lock ( ) defer ekgLock . Unlock ( ) for _ , keyb := range ekgs { delete ( ekgKeyToClientIdsNames [ keyb ] , cidi ) } delete ( ekgClientIdToKeysNames , cidi ) return nil }
Shortcut for CleanClientEkgs is we've already called EkgsForClient before and
we simply want to pass that result in and not call it again.
Shortcut for CleanClientEkgs is we ' ve already called EkgsForClient before and we simply want to pass that result in and not call it again .