move InitJournalKey to the top; add godcs on invoke order.

This commit is contained in:
Raúl Kripalani 2020-09-02 19:15:07 +01:00
parent cb8e105a94
commit 0b6a182a44

View File

@ -91,11 +91,16 @@ var (
type invoke int type invoke int
// Invokes are called in the order they are defined.
//nolint:golint //nolint:golint
const ( const (
// InitJournal at position 0 initializes the journal global var as soon as
// the system starts, so that it's available for all other components.
InitJournalKey = invoke(iota)
// libp2p // libp2p
PstoreAddSelfKeysKey = invoke(iota) PstoreAddSelfKeysKey
StartListeningKey StartListeningKey
BootstrapKey BootstrapKey
@ -123,7 +128,6 @@ const (
HeadMetricsKey HeadMetricsKey
SettlePaymentChannelsKey SettlePaymentChannelsKey
RunPeerTaggerKey RunPeerTaggerKey
InitJournalKey
SetApiEndpointKey SetApiEndpointKey