mirror of
https://github.com/l5yth/potato-mesh.git
synced 2026-07-01 23:41:06 +02:00
Adjust federation announcement cadence (#292)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user