Skip to content

Commit f19ab9c

Browse files
fix(PinApi): use the cancellation token
1 parent a843b95 commit f19ab9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoreApi/PinApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ FileStore<Cid, Pin> Store
5959
var current = todos.Pop();
6060

6161
// Add CID to PIN database.
62-
await Store.PutAsync(current, new Pin { Id = current }).ConfigureAwait(false);
62+
await Store.PutAsync(current, new Pin { Id = current }, cancel).ConfigureAwait(false);
6363

6464
// Make sure that the content is stored locally.
6565
await ipfs.Block.GetAsync(current, cancel).ConfigureAwait(false);

0 commit comments

Comments
 (0)