Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
go-ipfs
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
ipfs
go-ipfs
Commits
7fdcbce1
Commit
7fdcbce1
authored
Dec 12, 2019
by
Roman Proskuryakov
Browse files
Options
Downloads
Patches
Plain Diff
Change Reporter to BandwidthCounter in IpfsNode
parent
6eb481cd
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/core.go
+10
-10
10 additions, 10 deletions
core/core.go
core/node/libp2p/transport.go
+1
-1
1 addition, 1 deletion
core/node/libp2p/transport.go
with
11 additions
and
11 deletions
core/core.go
+
10
−
10
View file @
7fdcbce1
...
@@ -75,7 +75,7 @@ type IpfsNode struct {
...
@@ -75,7 +75,7 @@ type IpfsNode struct {
Blocks
bserv
.
BlockService
// the block service, get/add blocks.
Blocks
bserv
.
BlockService
// the block service, get/add blocks.
DAG
ipld
.
DAGService
// the merkle dag service, get/add objects.
DAG
ipld
.
DAGService
// the merkle dag service, get/add objects.
Resolver
*
resolver
.
Resolver
// the path resolution system
Resolver
*
resolver
.
Resolver
// the path resolution system
Reporter
metrics
.
Reporter
`optional:"true"`
Reporter
*
metrics
.
BandwidthCounter
`optional:"true"`
Discovery
discovery
.
Service
`optional:"true"`
Discovery
discovery
.
Service
`optional:"true"`
FilesRoot
*
mfs
.
Root
FilesRoot
*
mfs
.
Root
RecordValidator
record
.
Validator
RecordValidator
record
.
Validator
...
...
...
...
This diff is collapsed.
Click to expand it.
core/node/libp2p/transport.go
+
1
−
1
View file @
7fdcbce1
...
@@ -31,7 +31,7 @@ func Security(enabled, preferTLS bool) interface{} {
...
@@ -31,7 +31,7 @@ func Security(enabled, preferTLS bool) interface{} {
}
}
}
}
func
BandwidthCounter
()
(
opts
Libp2pOpts
,
reporter
metrics
.
Repor
ter
)
{
func
BandwidthCounter
()
(
opts
Libp2pOpts
,
reporter
*
metrics
.
BandwidthCoun
ter
)
{
reporter
=
metrics
.
NewBandwidthCounter
()
reporter
=
metrics
.
NewBandwidthCounter
()
opts
.
Opts
=
append
(
opts
.
Opts
,
libp2p
.
BandwidthReporter
(
reporter
))
opts
.
Opts
=
append
(
opts
.
Opts
,
libp2p
.
BandwidthReporter
(
reporter
))
return
opts
,
reporter
return
opts
,
reporter
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment