Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
6187edf0
Unverified
Commit
6187edf0
authored
Jun 10, 2020
by
Janoš Guljaš
Committed by
GitHub
Jun 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use netstore in retrieval protocol (#277)
Co-authored-by:
svetomir
<
svetomirsmiljkovic@gmail.com
>
parent
4062b5c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
beekeeper.yaml
.github/workflows/beekeeper.yaml
+3
-1
node.go
pkg/node/node.go
+2
-1
retrieval.go
pkg/retrieval/retrieval.go
+5
-0
No files found.
.github/workflows/beekeeper.yaml
View file @
6187edf0
...
...
@@ -51,4 +51,6 @@ jobs:
-
name
:
Test pushsync (bzz API)
run
:
./beekeeper check pushsync --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --upload-node-count "${REPLICA}" --chunks-per-node
3
-
name
:
Test pushsync (bzz-chunk API)
run
:
./beekeeper check pushsync --bzz-chunk --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --upload-node-count "${REPLICA}" --chunks-per-node
3
run
:
./beekeeper check pushsync --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --upload-node-count "${REPLICA}" --chunks-per-node 3 --bzz-chunk
-
name
:
Test retrieval
run
:
./beekeeper check retrieval --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --upload-node-count "${REPLICA}" --chunks-per-node
3
pkg/node/node.go
View file @
6187edf0
...
...
@@ -205,7 +205,6 @@ func NewBee(o Options) (*Bee, error) {
retrieve
:=
retrieval
.
New
(
retrieval
.
Options
{
Streamer
:
p2ps
,
ChunkPeerer
:
topologyDriver
,
Storer
:
storer
,
Logger
:
logger
,
})
tag
:=
tags
.
NewTags
()
...
...
@@ -216,6 +215,8 @@ func NewBee(o Options) (*Bee, error) {
ns
:=
netstore
.
New
(
storer
,
retrieve
,
validator
.
NewContentAddressValidator
())
retrieve
.
SetStorer
(
ns
)
pushSyncProtocol
:=
pushsync
.
New
(
pushsync
.
Options
{
Streamer
:
p2ps
,
Storer
:
storer
,
...
...
pkg/retrieval/retrieval.go
View file @
6187edf0
...
...
@@ -113,3 +113,8 @@ func (s *Service) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream) er
return
nil
}
// SetStorer sets the storer. This call is not goroutine safe.
func
(
s
*
Service
)
SetStorer
(
storer
storage
.
Storer
)
{
s
.
storer
=
storer
}
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