Skip to content

Commit e5f5058

Browse files
committed
chore: realtime registery json key renamed
1 parent bca34a4 commit e5f5058

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
33
name = "feature-probe-server"
4-
version = "1.3.11"
4+
version = "1.3.12"
55
license = "Apache-2.0"
66
authors = ["maintain@featureprobe.com"]
77
description = "FeatureProbe Server for evaluating feature toggles"

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl ServerConfig {
118118

119119
#[cfg(feature = "realtime")]
120120
let realtime_port = match config.get_int("realtime_port") {
121-
Err(_) => 9090, // default port
121+
Err(_) => 9100, // default port
122122
Ok(port) => port as u16,
123123
};
124124

src/realtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl RealtimeSocket {
6565
async move {
6666
info!("socketio recv {:?}", payload);
6767
if let Some(Payload::Json(value)) = payload {
68-
match value.get("sdk_key") {
68+
match value.get("key") {
6969
Some(Value::String(sdk_key)) => socket.join(vec![sdk_key]).await,
7070
_ => {
7171
warn!("unkown register payload")

0 commit comments

Comments
 (0)