From 3797878d207b5bdb2a9de7d07a97ab2182bd0e3f Mon Sep 17 00:00:00 2001 From: Paul <paulmakles@gmail.com> Date: Fri, 2 Apr 2021 13:25:51 +0100 Subject: [PATCH] Fixes bug with distributed nodes. --- Cargo.lock | 4 +--- Cargo.toml | 2 +- src/routes/channels/edit_channel.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 388dfce..b9b1ca7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1067,9 +1067,7 @@ checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" [[package]] name = "hive_pubsub" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83760410241f6db418bb15e54b506a0887e7240286e29e5b0d2d88f5d1659b24" +version = "0.4.4" dependencies = [ "futures", "many-to-many", diff --git a/Cargo.toml b/Cargo.toml index e08d63b..2bd5f10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ reqwest = { version = "0.10.8", features = ["json"] } serde = { version = "1.0.115", features = ["derive"] } validator = { version = "0.11", features = ["derive"] } ctrlc = { version = "3.0", features = ["termination"] } -hive_pubsub = { version = "0.4.3", features = ["mongo"] } +hive_pubsub = { version = "0.4.4", features = ["mongo"] } async-std = { version = "1.8.0", features = ["tokio02", "attributes"] } async-tungstenite = { version = "0.10.0", features = ["async-std-runtime"] } rocket_cors = { git = "https://github.com/insertish/rocket_cors", branch = "master" } diff --git a/src/routes/channels/edit_channel.rs b/src/routes/channels/edit_channel.rs index ab2166d..6e74de1 100644 --- a/src/routes/channels/edit_channel.rs +++ b/src/routes/channels/edit_channel.rs @@ -2,10 +2,10 @@ use crate::database::*; use crate::util::result::{Error, Result}; use crate::notifications::events::ClientboundNotification; +use mongodb::bson::doc; use validator::Validate; use rocket_contrib::json::Json; use serde::{Serialize, Deserialize}; -use mongodb::bson::{doc, to_document}; #[derive(Validate, Serialize, Deserialize)] pub struct Data { -- GitLab