Adjust federation announcement cadence (#292)

This commit is contained in:
l5y
2025-10-12 09:08:50 +02:00
committed by GitHub
parent 522213c040
commit 80f2bbdb25
2 changed files with 14 additions and 1 deletions
+3 -1
View File
@@ -133,8 +133,10 @@ module PotatoMesh
["potatomesh.net"].freeze
end
# @return [Integer] the number of seconds between federation announcement broadcasts.
# Eight hours provides three updates per day without creating unnecessary chatter.
def federation_announcement_interval
24 * 60 * 60
8 * 60 * 60
end
def site_name
+11
View File
@@ -0,0 +1,11 @@
# frozen_string_literal: true
require "spec_helper"
RSpec.describe PotatoMesh::Config do
describe ".federation_announcement_interval" do
it "returns eight hours in seconds" do
expect(described_class.federation_announcement_interval).to eq(8 * 60 * 60)
end
end
end