Commit f1bb8a81 authored by hannahhoward's avatar hannahhoward

fix(global): minor cleanups

correction to diagram, protobuff, and remove test function not needed
parent 2c3e40dd
docs/GraphSync.png

257 KB | W: | H:

docs/GraphSync.png

257 KB | W: | H:

docs/GraphSync.png
docs/GraphSync.png
docs/GraphSync.png
docs/GraphSync.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
...@@ -158,7 +158,7 @@ package "go-graphsync" { ...@@ -158,7 +158,7 @@ package "go-graphsync" {
} }
object "PackagePublicFunctions" as goGraphsyncPf { object "PackagePublicFunctions" as goGraphsyncPf {
New(ctx context.Context, network GraphSyncNetwork, getBlockFunc GetBlockFunc) GraphSync New(ctx context.Context, network GraphSyncNetwork, selectorQuerier SelectorQuerier) GraphSync
} }
} }
......
...@@ -12,7 +12,7 @@ message Message { ...@@ -12,7 +12,7 @@ message Message {
bytes selector = 3; // ipld selector to retrieve bytes selector = 3; // ipld selector to retrieve
bytes extra = 4; // aux information. useful for other protocols bytes extra = 4; // aux information. useful for other protocols
int32 priority = 5; // the priority (normalized). default to 1 int32 priority = 5; // the priority (normalized). default to 1
bool cancel = 7; // whether this cancels a request bool cancel = 6; // whether this cancels a request
} }
message Response { message Response {
......
...@@ -106,12 +106,6 @@ func MockDecodeSelectionResponseFunc(data []byte) gsselector.SelectionResponse { ...@@ -106,12 +106,6 @@ func MockDecodeSelectionResponseFunc(data []byte) gsselector.SelectionResponse {
return newNode(data) return newNode(data)
} }
// MockDecodeRootNodeFunc decodes raw data to a type that satisfies an
// IPLD node interface
func MockDecodeRootNodeFunc(data []byte) ipld.Node {
return newNode(data)
}
// GenerateSelector returns a new mock Selector // GenerateSelector returns a new mock Selector
func GenerateSelector() gsselector.Selector { func GenerateSelector() gsselector.Selector {
node := newNode(randomBytes(blockSize, seedSeq)) node := newNode(randomBytes(blockSize, seedSeq))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment