// Check the existence of a friend in the list by the public key.
Check the existence of a friend in the list by the public key.
// Check the existence of a friend in the list by the public key .
func (f2f *friendToFriend) InList(pub crypto.PubKey) bool {
	f2f.mutex.Lock()
	defer f2f.mutex.Unlock()
	_, ok := f2f.friends[string(pub.Address())]
	return ok
}
func ( f2f * friendToFriend ) InList ( pub crypto . PubKey ) bool { f2f . mutex . Lock ( ) defer f2f . mutex . Unlock ( ) _ , ok := f2f . friends [ string ( pub . Address ( ) ) ] return ok }
Check the existence of a friend in the list by the public key.
Check the existence of a friend in the list by the public key .