Skip to content

Commit

Permalink
chore: bump poll interval
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbl committed Sep 26, 2023
1 parent 71eec66 commit de178c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/new-proposals-monitoring.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class NewProposalsMonitoringService implements OnModuleInit {
.defineDataSource<RealmData>()
.poll(
async (subscribers) => this.realmsService.getRealmsData(subscribers),
Duration.fromObject({ seconds: 30 }),
Duration.fromObject({ seconds: 60 }),
)
.transform<ProposalWithMetadata[], ProposalWithMetadata[]>({
keys: ['proposals'],
Expand Down
3 changes: 1 addition & 2 deletions src/proposal-state-monitoring.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
} from '@solana/spl-governance';
import { fmtTokenAmount, RealmMints } from './realms-repository';


interface ProposalVotingStats {
yesCount: number;
noCount: number;
Expand All @@ -45,7 +44,7 @@ export class ProposalStateChangeMonitoringService implements OnModuleInit {
.defineDataSource<ProposalData>()
.poll(
async (subscribers) => this.realmsService.getProposalData(subscribers),
Duration.fromObject({ seconds: 30 }),
Duration.fromObject({ seconds: 60 }),
)
.transform<ProgramAccount<Proposal>, Change<ProgramAccount<Proposal>>>({
keys: ['proposal'],
Expand Down

0 comments on commit de178c4

Please sign in to comment.