mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
bugfix - blocking write
This commit is contained in:
parent
a4e3be7f32
commit
dd8513493c
@ -559,7 +559,7 @@ impl Overlord {
|
||||
tracing::debug!("Settings saved.");
|
||||
}
|
||||
ToOverlordMessage::SetRelayPost(relay_url, post) => {
|
||||
if let Some(relay) = GLOBALS.relays.blocking_write().get_mut(&relay_url) {
|
||||
if let Some(relay) = GLOBALS.relays.write().await.get_mut(&relay_url) {
|
||||
relay.post = post;
|
||||
}
|
||||
DbRelay::update_post(relay_url, post).await?;
|
||||
|
Loading…
Reference in New Issue
Block a user