mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-26 17:34:21 +01:00
fix (homeserver): disable relays when republishing user keys to avoid rate limiting (#117)
This commit is contained in:
committed by
GitHub
parent
639eec4d26
commit
ec40609d11
@@ -57,7 +57,8 @@ impl UserKeysRepublisher {
|
||||
);
|
||||
}
|
||||
|
||||
let pkarr_builder = context.pkarr_builder.clone();
|
||||
let mut pkarr_builder = context.pkarr_builder.clone();
|
||||
pkarr_builder.no_relays(); // Disable relays to avoid their rate limiting.
|
||||
let handle = tokio::spawn(async move {
|
||||
tokio::time::sleep(initial_delay).await;
|
||||
Self::run_loop(db, republish_interval, pkarr_builder).await
|
||||
|
||||
Reference in New Issue
Block a user