Skip to content

Commit 797aad9

Browse files
author
Brian Tiger Chow
committed
refactor(core) extract const
1 parent b0596cd commit 797aad9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/core.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import (
4242

4343
const IpnsValidatorTag = "ipns"
4444
const kSizeBlockstoreWriteCache = 100
45+
const kReprovideFrequency = time.Hour * 12
4546

4647
var log = eventlog.Logger("core")
4748

@@ -254,7 +255,7 @@ func (n *IpfsNode) StartOnlineServices(ctx context.Context) error {
254255
go superviseConnections(ctx, n.PeerHost, dhtRouting, n.Peerstore, bootstrapPeers)
255256

256257
n.Reprovider = rp.NewReprovider(n.Routing, n.Blockstore)
257-
go n.Reprovider.ProvideEvery(ctx, time.Hour*12)
258+
go n.Reprovider.ProvideEvery(ctx, kReprovideFrequency)
258259

259260
return nil
260261
}

0 commit comments

Comments
 (0)