Skip to content

Commit

Permalink
fix: AddFileAsync needs AddFileOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Mar 10, 2018
1 parent 5058a1a commit da58919
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/CoreApi/IFileSystemApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ public interface IFileSystemApi
/// <param name="path">
/// The name of the local file.
/// </param>
/// <param name="pin">
/// If <b>true</b> the file is pinned to local storage and will not be
/// garbage collected. The default is <b>true</b>.
/// <param name="options">
/// The options when adding data to the IPFS file system.
/// </param>
/// <param name="cancel">
/// Is used to stop the task. When cancelled, the <see cref="TaskCanceledException"/> is raised.
Expand All @@ -30,7 +29,7 @@ public interface IFileSystemApi
/// A task that represents the asynchronous operation. The task's value is
/// the file's node.
/// </returns>
Task<IFileSystemNode> AddFileAsync(string path, bool pin = true, CancellationToken cancel = default(CancellationToken));
Task<IFileSystemNode> AddFileAsync(string path, AddFileOptions options = default(AddFileOptions), CancellationToken cancel = default(CancellationToken));

/// <summary>
/// Add some text to the interplanetary file system.
Expand Down

0 comments on commit da58919

Please sign in to comment.