From de178c40bc98217eb0628919d6daa705362c6f8c Mon Sep 17 00:00:00 2001 From: Alexey Tsymbal Date: Tue, 26 Sep 2023 16:23:32 +0300 Subject: [PATCH] chore: bump poll interval --- src/new-proposals-monitoring.service.ts | 2 +- src/proposal-state-monitoring.service.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/new-proposals-monitoring.service.ts b/src/new-proposals-monitoring.service.ts index 587534e..78583da 100644 --- a/src/new-proposals-monitoring.service.ts +++ b/src/new-proposals-monitoring.service.ts @@ -34,7 +34,7 @@ export class NewProposalsMonitoringService implements OnModuleInit { .defineDataSource() .poll( async (subscribers) => this.realmsService.getRealmsData(subscribers), - Duration.fromObject({ seconds: 30 }), + Duration.fromObject({ seconds: 60 }), ) .transform({ keys: ['proposals'], diff --git a/src/proposal-state-monitoring.service.ts b/src/proposal-state-monitoring.service.ts index b4b4df1..ef5d7de 100644 --- a/src/proposal-state-monitoring.service.ts +++ b/src/proposal-state-monitoring.service.ts @@ -19,7 +19,6 @@ import { } from '@solana/spl-governance'; import { fmtTokenAmount, RealmMints } from './realms-repository'; - interface ProposalVotingStats { yesCount: number; noCount: number; @@ -45,7 +44,7 @@ export class ProposalStateChangeMonitoringService implements OnModuleInit { .defineDataSource() .poll( async (subscribers) => this.realmsService.getProposalData(subscribers), - Duration.fromObject({ seconds: 30 }), + Duration.fromObject({ seconds: 60 }), ) .transform, Change>>({ keys: ['proposal'],