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-unixfs
Commits
797aad91
Commit
797aad91
authored
Jan 17, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(core) extract const
parent
b0596cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
core/core.go
core/core.go
+2
-1
No files found.
core/core.go
View file @
797aad91
...
...
@@ -42,6 +42,7 @@ import (
const
IpnsValidatorTag
=
"ipns"
const
kSizeBlockstoreWriteCache
=
100
const
kReprovideFrequency
=
time
.
Hour
*
12
var
log
=
eventlog
.
Logger
(
"core"
)
...
...
@@ -254,7 +255,7 @@ func (n *IpfsNode) StartOnlineServices(ctx context.Context) error {
go
superviseConnections
(
ctx
,
n
.
PeerHost
,
dhtRouting
,
n
.
Peerstore
,
bootstrapPeers
)
n
.
Reprovider
=
rp
.
NewReprovider
(
n
.
Routing
,
n
.
Blockstore
)
go
n
.
Reprovider
.
ProvideEvery
(
ctx
,
time
.
Hour
*
12
)
go
n
.
Reprovider
.
ProvideEvery
(
ctx
,
kReprovideFrequency
)
return
nil
}
...
...
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