Skip to content

consider reverting peerstore context changes #2327

@marten-seemann

Description

@marten-seemann

I just merged #2312, and tried building Kubo. This is creating build errors all over the place (Kubo itself, Kademlia, Gossipsub). Upgrading libp2p will be extremely painful if we cut a release now.

I'm wondering if we really need this. Does respecting cancelations actually make sense if we don't get any result back from the peerstore that a call failed (e.g. an error on Put)? Now we can set a context with deadline, but we have no idea if the change was actually committed when that call returns.

What was the motivation behind #2231 anyway?

cc @chaitanyaprem @sukunrt @MarcoPolo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions