Skip to content

Conversation

@guillaumemichel
Copy link
Collaborator

@guillaumemichel guillaumemichel commented Jul 21, 2025

Part of #1095

Depends on #1098


Interface for polling the provide status of a specific key. Since this method isn't required for the provider to operate, this method isn't included in the DHTProvider interface #1093.


Merging this PR isn't urgent, since the method isn't implemented yet in #1082, and it isn't required for the providing to work.

@guillaumemichel guillaumemichel requested a review from a team as a code owner July 21, 2025 13:24
This was referenced Jul 21, 2025
@guillaumemichel guillaumemichel changed the title provider: LastProvideAt interface provider: ProvideStatus interface Jul 21, 2025
@guillaumemichel guillaumemichel mentioned this pull request Jul 21, 2025
17 tasks
Co-authored-by: Marcin Rataj <[email protected]>
Copy link
Contributor

@gammazero gammazero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix comment, then OK to merge

@guillaumemichel
Copy link
Collaborator Author

I renamed stateTime (previously ts) to lastProvide, since the timestamp is returned only if the key has been provided in the past.

// For `StateQueued` or `StateUnknown`, `lastProvide` is the zero `time.Time`.

@guillaumemichel guillaumemichel changed the base branch from sweepingprovider-interface to provider August 6, 2025 20:17
@guillaumemichel guillaumemichel force-pushed the provider-interface-LastProvideAt branch from 4640796 to dcf1438 Compare August 7, 2025 13:22
@guillaumemichel guillaumemichel merged commit 5729c1e into provider Aug 8, 2025
9 checks passed
guillaumemichel added a commit that referenced this pull request Aug 19, 2025
* SweepingProvider interface

* updated interface to address reviews

* LastProvideAt

* ProvideStatus

* Update provider/provider.go

Co-authored-by: Marcin Rataj <[email protected]>

* renamed `ts` to `lastProvide`

* add TODO for missing implementation

---------

Co-authored-by: Marcin Rataj <[email protected]>
guillaumemichel added a commit to guillaumemichel/go-libp2p-kad-dht that referenced this pull request Sep 17, 2025
* SweepingProvider interface

* updated interface to address reviews

* LastProvideAt

* ProvideStatus

* Update provider/provider.go

Co-authored-by: Marcin Rataj <[email protected]>

* renamed `ts` to `lastProvide`

* add TODO for missing implementation

---------

Co-authored-by: Marcin Rataj <[email protected]>
guillaumemichel added a commit that referenced this pull request Sep 17, 2025
* SweepingProvider interface

* updated interface to address reviews

* LastProvideAt

* ProvideStatus

* Update provider/provider.go

Co-authored-by: Marcin Rataj <[email protected]>

* renamed `ts` to `lastProvide`

* add TODO for missing implementation

---------

Co-authored-by: Marcin Rataj <[email protected]>
guillaumemichel added a commit that referenced this pull request Sep 18, 2025
* SweepingProvider interface

* updated interface to address reviews

* LastProvideAt

* ProvideStatus

* Update provider/provider.go

Co-authored-by: Marcin Rataj <[email protected]>

* renamed `ts` to `lastProvide`

* add TODO for missing implementation

---------

Co-authored-by: Marcin Rataj <[email protected]>
@gammazero gammazero deleted the provider-interface-LastProvideAt branch November 7, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants