// GetAllOnlyStaged returns all cids that only have stage-pins.
GetAllOnlyStaged returns all cids that only have stage-pins.
// GetAllOnlyStaged returns all cids that only have stage - pins .
func (s *Store) GetAllOnlyStaged() ([]PinnedCid, error) {
	s.lock.Lock()
	defer s.lock.Unlock()
	var res []PinnedCid
Loop:
	for _, v := range s.cache {
		for _, p := range v.Pins {
			if !p.Staged {
				continue Loop
			}
		}
		res = append(res, v)
	}
	return res, nil
}
func ( s * Store ) GetAllOnlyStaged ( ) ( [ ] PinnedCid , error ) { s . lock . Lock ( ) defer s . lock . Unlock ( ) var res [ ] PinnedCid Loop : for _ , v := range s . cache { for _ , p := range v . Pins { if ! p . Staged { continue Loop } } res = append ( res , v ) } return res , nil }
GetAllOnlyStaged returns all cids that only have stage-pins.
GetAllOnlyStaged returns all cids that only have stage - pins .