Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-graphsync
Commits
9529ffb3
Unverified
Commit
9529ffb3
authored
Sep 24, 2020
by
Hannah Howard
Committed by
GitHub
Sep 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #99 from ipfs/release/0.2.0
Release/0.2.0
parents
7011d1e2
0a54f9bd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
31 deletions
+58
-31
CHANGELOG.md
CHANGELOG.md
+27
-0
benchmarks/testnet/peernet.go
benchmarks/testnet/peernet.go
+2
-2
ipldutil/ipldutil.go
ipldutil/ipldutil.go
+2
-2
ipldutil/traverser.go
ipldutil/traverser.go
+2
-2
metadata/metadata_test.go
metadata/metadata_test.go
+2
-2
requestmanager/executor/executor.go
requestmanager/executor/executor.go
+8
-8
requestmanager/executor/executor_test.go
requestmanager/executor/executor_test.go
+7
-7
requestmanager/requestmanager.go
requestmanager/requestmanager.go
+8
-8
No files found.
CHANGELOG.md
View file @
9529ffb3
...
...
@@ -163,6 +163,33 @@ Minor release with initial benchmarks
|-------------|---------|---------|---------------|
| Hannah Howard | 1 | +1055/-39 | 17 |
# go-graphsync 0.2.0
Update to IPLD prime + several optimizations for performance
### Changelog
-
github.com/ipfs/go-graphsync:
-
style(imports): fix imports
-
fix(selectorvalidator): memory optimization (#97) (
[
ipfs/go-graphsync#97
](
https://github.com/ipfs/go-graphsync/pull/97
)
)
-
Update go-ipld-prime@v0.5.0 (#92) (
[
ipfs/go-graphsync#92
](
https://github.com/ipfs/go-graphsync/pull/92
)
)
-
refactor(metadata): use cbor-gen encoding (#96) (
[
ipfs/go-graphsync#96
](
https://github.com/ipfs/go-graphsync/pull/96
)
)
-
Release/v0.1.2 (
[
ipfs/go-graphsync#95
](
https://github.com/ipfs/go-graphsync/pull/95
)
)
-
Return Request context cancelled error (#93) (
[
ipfs/go-graphsync#93
](
https://github.com/ipfs/go-graphsync/pull/93
)
)
-
feat(benchmarks): add p2p stress test (#91) (
[
ipfs/go-graphsync#91
](
https://github.com/ipfs/go-graphsync/pull/91
)
)
-
github.com/hannahhoward/cbor-gen-for (null -> v0.0.0-20200817222906-ea96cece81f1):
-
add flag to select map encoding (
[
hannahhoward/cbor-gen-for#1
](
https://github.com/hannahhoward/cbor-gen-for/pull/1
)
)
### Contributors
| Contributor | Commits | Lines ± | Files Changed |
|-------------|---------|---------|---------------|
| Eric Myhre | 1 | +2919/-121 | 39 |
| Hannah Howard | 3 | +412/-103 | 15 |
| hannahhoward | 1 | +31/-31 | 7 |
| whyrusleeping | 1 | +31/-18 | 2 |
| Aarsh Shah | 1 | +27/-1 | 3 |
### 🙌🏽 Want to contribute?
Would you like to contribute to this repo and don’t know how? Here are a few places you can get started:
...
...
benchmarks/testnet/peernet.go
View file @
9529ffb3
...
...
@@ -3,11 +3,11 @@ package testnet
import
(
"context"
gsnet
"github.com/ipfs/go-graphsync/network"
"github.com/libp2p/go-libp2p-core/peer"
tnet
"github.com/libp2p/go-libp2p-testing/net"
mockpeernet
"github.com/libp2p/go-libp2p/p2p/net/mock"
gsnet
"github.com/ipfs/go-graphsync/network"
)
type
peernet
struct
{
...
...
ipldutil/ipldutil.go
View file @
9529ffb3
...
...
@@ -36,8 +36,8 @@ func Traverse(ctx context.Context, loader ipld.Loader, chooser traversal.LinkTar
node
:=
nb
.
Build
()
return
traversal
.
Progress
{
Cfg
:
&
traversal
.
Config
{
Ctx
:
ctx
,
LinkLoader
:
loader
,
Ctx
:
ctx
,
LinkLoader
:
loader
,
LinkTargetNodePrototypeChooser
:
chooser
,
},
}
.
WalkAdv
(
node
,
s
,
fn
)
...
...
ipldutil/traverser.go
View file @
9529ffb3
...
...
@@ -167,8 +167,8 @@ func (t *traverser) start() {
}
err
=
traversal
.
Progress
{
Cfg
:
&
traversal
.
Config
{
Ctx
:
t
.
ctx
,
LinkLoader
:
loader
,
Ctx
:
t
.
ctx
,
LinkLoader
:
loader
,
LinkTargetNodePrototypeChooser
:
t
.
chooser
,
},
}
.
WalkAdv
(
nd
,
sel
,
t
.
visitor
)
...
...
metadata/metadata_test.go
View file @
9529ffb3
...
...
@@ -7,11 +7,11 @@ import (
"github.com/ipld/go-ipld-prime/codec/dagcbor"
"github.com/ipld/go-ipld-prime/fluent"
cidlink
"github.com/ipld/go-ipld-prime/linking/cid"
basicnode
"github.com/ipld/go-ipld-prime/node/basic"
"github.com/stretchr/testify/require"
"github.com/ipfs/go-graphsync/testutil"
cidlink
"github.com/ipld/go-ipld-prime/linking/cid"
basicnode
"github.com/ipld/go-ipld-prime/node/basic"
)
func
TestDecodeEncodeMetadata
(
t
*
testing
.
T
)
{
...
...
requestmanager/executor/executor.go
View file @
9529ffb3
...
...
@@ -36,15 +36,15 @@ type ExecutionEnv struct {
// RequestExecution are parameters for a single request execution
type
RequestExecution
struct
{
Ctx
context
.
Context
P
peer
.
ID
NetworkError
chan
error
Request
gsmsg
.
GraphSyncRequest
LastResponse
*
atomic
.
Value
DoNotSendCids
*
cid
.
Set
Ctx
context
.
Context
P
peer
.
ID
NetworkError
chan
error
Request
gsmsg
.
GraphSyncRequest
LastResponse
*
atomic
.
Value
DoNotSendCids
*
cid
.
Set
NodePrototypeChooser
traversal
.
LinkTargetNodePrototypeChooser
ResumeMessages
chan
[]
graphsync
.
ExtensionData
PauseMessages
chan
struct
{}
ResumeMessages
chan
[]
graphsync
.
ExtensionData
PauseMessages
chan
struct
{}
}
// Start begins execution of a request in a go routine
...
...
requestmanager/executor/executor_test.go
View file @
9529ffb3
...
...
@@ -430,13 +430,13 @@ func (ree *requestExecutionEnv) requestExecution() (chan graphsync.ResponseProgr
TerminateRequest
:
ree
.
terminateRequest
,
Loader
:
ree
.
fal
.
AsyncLoad
,
}
.
Start
(
executor
.
RequestExecution
{
Ctx
:
ree
.
ctx
,
P
:
ree
.
p
,
LastResponse
:
&
lastResponse
,
Request
:
ree
.
request
,
DoNotSendCids
:
ree
.
doNotSendCids
,
Ctx
:
ree
.
ctx
,
P
:
ree
.
p
,
LastResponse
:
&
lastResponse
,
Request
:
ree
.
request
,
DoNotSendCids
:
ree
.
doNotSendCids
,
NodePrototypeChooser
:
ree
.
nodeStyleChooser
,
ResumeMessages
:
ree
.
resumeMessages
,
PauseMessages
:
ree
.
pauseMessages
,
ResumeMessages
:
ree
.
resumeMessages
,
PauseMessages
:
ree
.
pauseMessages
,
})
}
requestmanager/requestmanager.go
View file @
9529ffb3
...
...
@@ -338,15 +338,15 @@ func (nrm *newRequestMessage) setupRequest(requestID graphsync.RequestID, rm *Re
Loader
:
rm
.
asyncLoader
.
AsyncLoad
,
}
.
Start
(
executor
.
RequestExecution
{
Ctx
:
ctx
,
P
:
p
,
Request
:
request
,
NetworkError
:
networkError
,
LastResponse
:
lastResponse
,
DoNotSendCids
:
doNotSendCids
,
Ctx
:
ctx
,
P
:
p
,
Request
:
request
,
NetworkError
:
networkError
,
LastResponse
:
lastResponse
,
DoNotSendCids
:
doNotSendCids
,
NodePrototypeChooser
:
hooksResult
.
CustomChooser
,
ResumeMessages
:
resumeMessages
,
PauseMessages
:
pauseMessages
,
ResumeMessages
:
resumeMessages
,
PauseMessages
:
pauseMessages
,
})
return
incoming
,
incomingError
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment