|
4 | 4 | //! All configuration parameters can be customized through environment variables with the BUMP_ prefix. |
5 | 5 | //! |
6 | 6 | //! # 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) |
9 | 9 | //! - BUMP_DEFAULT_TTL_MS: Default request TTL (default: 500) |
10 | 10 | //! - BUMP_TEMPORAL_WEIGHT: Weight for time-based matching (default: 0.7) |
11 | 11 | //! - BUMP_SPATIAL_WEIGHT: Weight for location-based matching (default: 0.3) |
@@ -226,7 +226,7 @@ mod tests { |
226 | 226 | #[test] |
227 | 227 | fn test_default_config() { |
228 | 228 | let config = MatchingConfig::default(); |
229 | | - assert_eq!(config.max_distance_meters, 5.0); |
| 229 | + assert_eq!(config.max_distance_meters, 250.0); |
230 | 230 | assert_eq!(config.max_time_diff_ms, 1500); |
231 | 231 | assert_eq!(config.default_ttl_ms, 500); |
232 | 232 | assert_eq!(config.temporal_weight, 0.7); |
@@ -320,7 +320,7 @@ mod tests { |
320 | 320 |
|
321 | 321 | // Test with missing environment variables |
322 | 322 | 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 |
324 | 324 | } |
325 | 325 |
|
326 | 326 | #[test] |
|
0 commit comments