]> git.puffer.fish Git - matthieu/nova.git/commitdiff
fix event name, and publish instead of request
authorMatthieu <20992787+MatthieuCoder@users.noreply.github.com>
Sat, 6 Nov 2021 06:18:00 +0000 (10:18 +0400)
committerGitHub <noreply@github.com>
Sat, 6 Nov 2021 06:18:00 +0000 (10:18 +0400)
gateway/src/main.rs

index 4f67183b6eae78a7265ddb9c12b95d724fe809f1..f90d2feb189b23c841a54c771dbaed10162cc9c4 100644 (file)
@@ -48,8 +48,8 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
                 };
                 let value = serde_json::to_string(&data)?;
                 debug!("nats send: {}", value);
-                nats.request(
-                    &format!("nova.cache.discord.{}", data.data.0.kind().name().unwrap()),
+                nats.publish(
+                    &format!("nova.cache.dispatch.{}", data.data.0.kind().name().unwrap()),
                     value,
                 )?;
             }