Skip to content

Commit 2e3b93c

Browse files
committed
fix: add more context as to what to do if user encounter timeout issue several times
1 parent 8a47504 commit 2e3b93c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tap-agent/src/agent/sender_allocation.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,16 +555,14 @@ impl SenderAllocationState {
555555
),
556556
)
557557
.await
558-
.inspect_err(|err| match &err {
559-
jsonrpsee::core::ClientError::RequestTimeout => {
558+
.inspect_err(|err| {
559+
if let jsonrpsee::core::ClientError::RequestTimeout = &err {
560560
warn!(
561561
"Rav request is timing out, maybe request_timeout_secs is too \
562-
low in your config file, try adding more secs to the value"
562+
low in your config file, try adding more secs to the value. \
563+
If the problem persists after doing so please open an issue"
563564
);
564565
}
565-
_ => {
566-
warn!("An error occured {:?}", err);
567-
}
568566
})?;
569567

570568
let rav_response_time = rav_response_time_start.elapsed();

0 commit comments

Comments
 (0)