Skip to content

PCCS crate will panic if used without a tokio runtime #23

@ameba23

Description

@ameba23

The PCCS crate uses tokio::spawn which will panic if called outside of a tokio runtime.

We should either:

  • Reimlpement dcap_qvl's get_collateral_for_fmspc to use a synchronous http client for fetching if tokio::runtime::Handle::try_current() fails.
  • Or clearly document that the PCCS crate will not work without a tokio runtime.

See discussion: #3 (comment)

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