Skip to content

Commit

Permalink
scan last_announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed May 5, 2024
1 parent 3f2825f commit 5e0d94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persist/sqlite/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (s *Store) SetLastAnnouncement(cids []cid.Cid, t time.Time) error {
// interval to determine if the CID should be announced.
func (s *Store) ProvideCIDs(limit int) (cids []ipfs.PinnedCID, err error) {
err = s.transaction(func(tx *txn) error {
const query = `SELECT b.cid
const query = `SELECT b.cid, pb.last_announcement
FROM pinned_blocks pb
INNER JOIN blocks b ON (b.id=pb.block_id)
ORDER BY pb.last_announcement ASC
Expand Down

0 comments on commit 5e0d94a

Please sign in to comment.