Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Sep 30, 2024
2 parents b051a22 + 3b9f2a0 commit 4df24cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
.DS_Store
3 changes: 3 additions & 0 deletions exts/getput/getput.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
type GetResult struct {
Seq int64
V bencode.Bytes
Sig [64]byte
Mutable bool
}

Expand All @@ -46,6 +47,7 @@ func startGetTraversal(
select {
case vChan <- GetResult{
V: rv,
Sig: r.Sig,
Mutable: false,
}:
case <-ctx.Done():
Expand All @@ -55,6 +57,7 @@ func startGetTraversal(
case vChan <- GetResult{
Seq: *r.Seq,
V: rv,
Sig: r.Sig,
Mutable: true,
}:
case <-ctx.Done():
Expand Down

0 comments on commit 4df24cb

Please sign in to comment.