Skip to content

Insert in the local storage is not complete after the BitswapEvent::Complete for the get query #29

Open
@theBeardA

Description

@theBeardA

The get query for libp2p-bitswap generates BitswapEvent::Complete when the query is completed. But after the complete event, it takes a few milliseconds before I can retrieve the block with cid from the local storage. is this expected behaviour?
Is insertion into the local storage part of the get query ?? I think so because I can query it. but why is it not available right at the moment the BitswapEvent::Complete is generated and I have to wait for few ms to retrieve the block?

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