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
14ef5446
Unverified
Commit
14ef5446
authored
May 27, 2021
by
acud
Committed by
GitHub
May 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: disable lightnodes puller (#1883)
parent
f5a901c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
node.go
pkg/node/node.go
+10
-3
No files found.
pkg/node/node.go
View file @
14ef5446
...
...
@@ -568,8 +568,11 @@ func NewBee(addr string, swarmAddress swarm.Address, publicKey ecdsa.PublicKey,
pullSyncProtocol
:=
pullsync
.
New
(
p2ps
,
pullStorage
,
pssService
.
TryUnwrap
,
validStamp
,
logger
)
b
.
pullSyncCloser
=
pullSyncProtocol
pullerService
:=
puller
.
New
(
stateStore
,
kad
,
pullSyncProtocol
,
logger
,
puller
.
Options
{})
b
.
pullerCloser
=
pullerService
var
pullerService
*
puller
.
Puller
if
o
.
FullNodeMode
{
pullerService
:=
puller
.
New
(
stateStore
,
kad
,
pullSyncProtocol
,
logger
,
puller
.
Options
{})
b
.
pullerCloser
=
pullerService
}
retrieveProtocolSpec
:=
retrieve
.
Protocol
()
pushSyncProtocolSpec
:=
pushSyncProtocol
.
Protocol
()
...
...
@@ -641,7 +644,11 @@ func NewBee(addr string, swarmAddress swarm.Address, publicKey ecdsa.PublicKey,
debugAPIService
.
MustRegisterMetrics
(
pingPong
.
Metrics
()
...
)
debugAPIService
.
MustRegisterMetrics
(
acc
.
Metrics
()
...
)
debugAPIService
.
MustRegisterMetrics
(
storer
.
Metrics
()
...
)
debugAPIService
.
MustRegisterMetrics
(
pullerService
.
Metrics
()
...
)
if
pullerService
!=
nil
{
debugAPIService
.
MustRegisterMetrics
(
pullerService
.
Metrics
()
...
)
}
debugAPIService
.
MustRegisterMetrics
(
pushSyncProtocol
.
Metrics
()
...
)
debugAPIService
.
MustRegisterMetrics
(
pusherService
.
Metrics
()
...
)
debugAPIService
.
MustRegisterMetrics
(
pullSyncProtocol
.
Metrics
()
...
)
...
...
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