Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Feb 27, 2024
1 parent b7eb935 commit e6a574c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/expr/udf/src/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ use tonic::transport::Channel;
use crate::metrics::GLOBAL_METRICS;
use crate::{Error, Result};

/// Used for lazy udf client connections
// Interval between two successive probes of the UDF DNS.
const DNS_PROBE_INTERVAL_SECS: u64 = 5;
/// Used for eager udf client connections
const EAGER_DNS_PROBE_INTERVAL_SECS: u64 = 5;
// Timeout duration for performing an eager DNS resolution.
const EAGER_DNS_RESOLVE_TIMEOUT_SECS: u64 = 5;
const REQUEST_TIMEOUT_SECS: u64 = 5;
const CONNECT_TIMEOUT_SECS: u64 = 5;

Expand All @@ -55,7 +55,7 @@ impl ArrowFlightUdfClient {
Self::connect_inner(
addr,
ResolutionStrategy::Eager {
timeout: TokioDuration::from_secs(EAGER_DNS_PROBE_INTERVAL_SECS),
timeout: TokioDuration::from_secs(EAGER_DNS_RESOLVE_TIMEOUT_SECS),
},
)
.await
Expand Down

0 comments on commit e6a574c

Please sign in to comment.