Skip to content

Commit 3860e6c

Browse files
committed
chore: detail add variation-index
1 parent a59d433 commit 3860e6c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

examples/demo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async fn main() {
1212

1313
let remote_url = "http://localhost:4007";
1414
let server_sdk_key = "server-8ed48815ef044428826787e9a238b9c6a479f98c";
15-
let interval = Duration::from_millis(100);
15+
let interval = Duration::from_millis(1000);
1616
let config = FPConfig {
1717
remote_url: remote_url.to_owned(),
1818
server_sdk_key: server_sdk_key.to_owned(),

src/feature_probe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ impl FeatureProbe {
128128
value,
129129
reason: reason.unwrap_or(detail.reason),
130130
rule_index: detail.rule_index,
131+
variation_index: detail.variation_index,
131132
version: detail.version,
132133
}
133134
}

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const VERSION: &str = env!("CARGO_PKG_VERSION");
2525
pub struct FPDetail<T: Default + Debug> {
2626
pub value: T,
2727
pub rule_index: Option<usize>,
28+
pub variation_index: Option<usize>,
2829
pub version: Option<u64>,
2930
pub reason: String,
3031
}

0 commit comments

Comments
 (0)