Skip to content

Commit 487efd0

Browse files
committed
Increase default matching distance to 250m and time diff to 1500ms
1 parent bbd4596 commit 487efd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
//! All configuration parameters can be customized through environment variables with the BUMP_ prefix.
55
//!
66
//! # Environment Variables
7-
//! - BUMP_MAX_DISTANCE_METERS: Maximum distance for matching (default: 5.0)
8-
//! - BUMP_MAX_TIME_DIFF_MS: Maximum time difference (default: 500)
7+
//! - BUMP_MAX_DISTANCE_METERS: Maximum distance for matching (default: 250.0)
8+
//! - BUMP_MAX_TIME_DIFF_MS: Maximum time difference (default: 1500)
99
//! - BUMP_DEFAULT_TTL_MS: Default request TTL (default: 500)
1010
//! - BUMP_TEMPORAL_WEIGHT: Weight for time-based matching (default: 0.7)
1111
//! - BUMP_SPATIAL_WEIGHT: Weight for location-based matching (default: 0.3)
@@ -226,7 +226,7 @@ mod tests {
226226
#[test]
227227
fn test_default_config() {
228228
let config = MatchingConfig::default();
229-
assert_eq!(config.max_distance_meters, 5.0);
229+
assert_eq!(config.max_distance_meters, 250.0);
230230
assert_eq!(config.max_time_diff_ms, 1500);
231231
assert_eq!(config.default_ttl_ms, 500);
232232
assert_eq!(config.temporal_weight, 0.7);
@@ -320,7 +320,7 @@ mod tests {
320320

321321
// Test with missing environment variables
322322
let config = MatchingConfig::from_env_or_default();
323-
assert_eq!(config.max_distance_meters, 5.0); // Should use default values
323+
assert_eq!(config.max_distance_meters, 250.0); // Should use default values
324324
}
325325

326326
#[test]

0 commit comments

Comments
 (0)