journal: disable noisy message pool events.

This commit is contained in:
Raúl Kripalani 2020-07-21 13:13:09 +01:00
parent 3bd9d55a15
commit cb8e209f78

View File

@ -153,7 +153,12 @@ func defaults() []Option {
Override(new(dtypes.Bootstrapper), dtypes.Bootstrapper(false)), Override(new(dtypes.Bootstrapper), dtypes.Bootstrapper(false)),
Override(new(dtypes.ShutdownChan), make(chan struct{})), Override(new(dtypes.ShutdownChan), make(chan struct{})),
Override(new(journal.Journal), journal.OpenFSJournal), Override(new(journal.Journal), journal.OpenFSJournal),
Override(new(journal.DisabledEvents), journal.DisabledEvents{}),
// By default, disable noisy mpool events; keep only mpool:repub on.
Override(new(journal.DisabledEvents), journal.DisabledEvents{
journal.EventType{System: "mpool", Event: "add"},
journal.EventType{System: "mpool", Event: "remove"},
}),
Override(InitJournalKey, func(j journal.Journal) { /* forces the creation of the journal at startup */ }), Override(InitJournalKey, func(j journal.Journal) { /* forces the creation of the journal at startup */ }),
// Filecoin modules // Filecoin modules