[#205] innerring: Provide `alphabetState` param to `epochTimer`

Fix NPE, introduced in f09ee27a.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
support/v0.36
Evgenii Stratonikov 2023-04-04 09:36:22 +03:00 committed by Gitea
parent 49cc23e03c
commit ee7468daa7
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ func (s *Server) createIRFetcher() irFetcher {
func (s *Server) initTimers(cfg *viper.Viper, processors *serverProcessors, morphClients *serverMorphClients) {
s.epochTimer = newEpochTimer(&epochTimerArgs{
l: s.log,
alphabetState: s,
newEpochHandlers: s.newEpochTickHandlers(),
cnrWrapper: morphClients.CnrClient,
epoch: s,