[#205] innerring: Provide alphabetState param to epochTimer

Fix NPE, introduced in f09ee27a.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-04-04 09:36:22 +03:00
parent 0948a280fa
commit 4660ff7e13

View file

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