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-dms3
Commits
a1b492b8
Unverified
Commit
a1b492b8
authored
Dec 13, 2019
by
Steven Allen
Committed by
GitHub
Dec 13, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6793 from kpp/reporter_to_counter
Change Reporter to BandwidthCounter in IpfsNode
parents
6eb481cd
7fdcbce1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
core/core.go
core/core.go
+10
-10
core/node/libp2p/transport.go
core/node/libp2p/transport.go
+1
-1
No files found.
core/core.go
View file @
a1b492b8
...
...
@@ -67,16 +67,16 @@ type IpfsNode struct {
PNetFingerprint
libp2p
.
PNetFingerprint
`optional:"true"`
// fingerprint of private network
// Services
Peerstore
pstore
.
Peerstore
`optional:"true"`
// storage for other Peer instances
Blockstore
bstore
.
GCBlockstore
// the block store (lower level)
Filestore
*
filestore
.
Filestore
`optional:"true"`
// the filestore blockstore
BaseBlocks
node
.
BaseBlocks
// the raw blockstore, no filestore wrapping
GCLocker
bstore
.
GCLocker
// the locker used to protect the blockstore during gc
Blocks
bserv
.
BlockService
// the block service, get/add blocks.
DAG
ipld
.
DAGService
// the merkle dag service, get/add objects.
Resolver
*
resolver
.
Resolver
// the path resolution system
Reporter
metrics
.
Reporter
`optional:"true"`
Discovery
discovery
.
Service
`optional:"true"`
Peerstore
pstore
.
Peerstore
`optional:"true"`
// storage for other Peer instances
Blockstore
bstore
.
GCBlockstore
// the block store (lower level)
Filestore
*
filestore
.
Filestore
`optional:"true"`
// the filestore blockstore
BaseBlocks
node
.
BaseBlocks
// the raw blockstore, no filestore wrapping
GCLocker
bstore
.
GCLocker
// the locker used to protect the blockstore during gc
Blocks
bserv
.
BlockService
// the block service, get/add blocks.
DAG
ipld
.
DAGService
// the merkle dag service, get/add objects.
Resolver
*
resolver
.
Resolver
// the path resolution system
Reporter
*
metrics
.
BandwidthCounter
`optional:"true"`
Discovery
discovery
.
Service
`optional:"true"`
FilesRoot
*
mfs
.
Root
RecordValidator
record
.
Validator
...
...
core/node/libp2p/transport.go
View file @
a1b492b8
...
...
@@ -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
()
opts
.
Opts
=
append
(
opts
.
Opts
,
libp2p
.
BandwidthReporter
(
reporter
))
return
opts
,
reporter
...
...
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