import { pushPendingDnsRecords } from '@hexahost/dns';

import { logger } from '../logger';

export async function processDnsSyncTick(): Promise<void> {
  const synced = await pushPendingDnsRecords(25);
  if (synced > 0) {
    logger.info({ synced }, 'DNS records synchronized');
  }
}
