Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(parse network type): from str trait #76

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

cong-or
Copy link
Contributor

@cong-or cong-or commented Feb 1, 2024

Something like this would be handy:

example use case:

string based config from database

let mut follower = Follower::connect(
        &config.relay,
        Network::from_str(&config.network)?,
        follower_cfg,
    )
    .await?;`

@minikin minikin enabled auto-merge (squash) February 1, 2024 15:18
@minikin minikin merged commit 36fb0e4 into main Feb 1, 2024
19 checks passed
@minikin minikin deleted the feat/chain-follower-from-str branch February 1, 2024 15:19
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.

2 participants