move InitJournalKey to the top; add godcs on invoke order.
This commit is contained in:
parent
cb8e105a94
commit
0b6a182a44
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user