Skip to content

Commit

Permalink
add sig data in return
Browse files Browse the repository at this point in the history
  • Loading branch information
decentralgabe authored and anacrolix committed Jun 10, 2024
1 parent f6cba96 commit 3b9f2a0
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 3b9f2a0

Please sign in to comment.