Skip to content

Commit

Permalink
apply review comment
Browse files Browse the repository at this point in the history
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
  • Loading branch information
ljedrz and koivunej committed Jul 31, 2020
1 parent 97487d2 commit 1615640
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Expand Up @@ -281,6 +281,11 @@ pub struct UninitializedIpfs<Types: IpfsTypes> {

impl<Types: IpfsTypes> UninitializedIpfs<Types> {
/// Configures a new UninitializedIpfs with from the given options and optionally a span.
/// If the span is not given, it is defaulted to `tracing::trace_span!("ipfs")`.
///
/// The span is attached to all operations called on the later created `Ipfs` along with all
/// operations done in the background task as well as tasks spawned by the underlying
/// `libp2p::Swarm`.
pub async fn new(options: IpfsOptions<Types>, span: Option<Span>) -> Self {
let repo_options = RepoOptions::<Types>::from(&options);
let (repo, repo_events) = create_repo(repo_options);
Expand Down

0 comments on commit 1615640

Please sign in to comment.