diff options
| author | Matthieu <20992787+MatthieuCoder@users.noreply.github.com> | 2021-11-06 10:18:00 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-06 10:18:00 +0400 |
| commit | a16bafdf5b0ec52fa0d73458597eee7c34ea5e7b (patch) | |
| tree | 4e639195f7211d1b1331d5b5e701d3ca92e9b43f | |
| parent | 65a23529c113536807eed91b94c31e44e770149d (diff) | |
fix event name, and publish instead of request
| -rw-r--r-- | gateway/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/src/main.rs b/gateway/src/main.rs index 4f67183..f90d2fe 100644 --- a/gateway/src/main.rs +++ b/gateway/src/main.rs @@ -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, )?; } |
