func (f *finder) common(ctx context.Context, at, after int64) (*epoch, swarm.Chunk, error) {
	for e := lca(at, after); ; e = e.parent() {
		ch, err := f.getter.Get(ctx, e)
		if err != nil {
			if errors.Is(err, storage.ErrNotFound) {
				if e.level == maxLevel {
					return e, nil, nil
				}
				continue
			}
			return e, nil, err
		}
		ts, err := feeds.UpdatedAt(ch)
		if err != nil {
			return e, nil, err
		}
		if ts <= uint64(at) {
			return e, ch, nil
		}
	}
}
// common returns the lowest common ancestor for which a feed update chunk is found in the chunk store
common returns the lowest common ancestor for which a feed update chunk is found in the chunk store
// common returns the lowest common ancestor for which a feed update chunk is found in the chunk store
func (f *finder) common(ctx context.Context, at, after int64) (*epoch, swarm.Chunk, error) {
	for e := lca(at, after); ; e = e.parent() {
		ch, err := f.getter.Get(ctx, e)
		if err != nil {
			if errors.Is(err, storage.ErrNotFound) {
				if e.level == maxLevel {
					return e, nil, nil
				}
				continue
			}
			return e, nil, err
		}
		ts, err := feeds.UpdatedAt(ch)
		if err != nil {
			return e, nil, err
		}
		if ts <= uint64(at) {
			return e, ch, nil
		}
	}
}
func ( f * finder ) common ( ctx context . Context , at , after int64 ) ( * epoch , swarm . Chunk , error ) { for e := lca ( at , after ) ; ; e = e . parent ( ) { ch , err := f . getter . Get ( ctx , e ) if err != nil { if errors . Is ( err , storage . ErrNotFound ) { if e . level == maxLevel { return e , nil , nil } continue } return e , nil , err } ts , err := feeds . UpdatedAt ( ch ) if err != nil { return e , nil , err } if ts <= uint64 ( at ) { return e , ch , nil } } }
common returns the lowest common ancestor for which a feed update chunk is found in the chunk store
common returns the lowest common ancestor for which a feed update chunk is found in the chunk store