// IsPinnedBy returns true if the Cid is pinned for APIID.
// Both strong and staged pins are considered.
IsPinnedBy returns true if the Cid is pinned for APIID.
Both strong and staged pins are considered.
// IsPinnedBy returns true if the Cid is pinned for APIID . // Both strong and staged pins are considered .
func (s *Store) IsPinnedBy(iid ffs.APIID, c cid.Cid) bool {
	s.lock.Lock()
	defer s.lock.Unlock()
	r, ok := s.cache[c]
	if !ok {
		return false
	}
	for _, p := range r.Pins {
		if p.APIID == iid {
			return true
		}
	}
	return false
}
func ( s * Store ) IsPinnedBy ( iid ffs . APIID , c cid . Cid ) bool { s . lock . Lock ( ) defer s . lock . Unlock ( ) r , ok := s . cache [ c ] if ! ok { return false } for _ , p := range r . Pins { if p . APIID == iid { return true } } return false }
IsPinnedBy returns true if the Cid is pinned for APIID.
IsPinnedBy returns true if the Cid is pinned for APIID .