From 6fa49f22700153e88f61b0b77223f5a990cb861b Mon Sep 17 00:00:00 2001 From: xtcyclist <7731943+xtcyclist@users.noreply.github.com> Date: Fri, 23 Dec 2022 13:42:51 +0800 Subject: [PATCH] fix another line. --- src/clients/storage/StorageClientBase-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clients/storage/StorageClientBase-inl.h b/src/clients/storage/StorageClientBase-inl.h index 6a2bf33fdc6..fc935c47bfa 100644 --- a/src/clients/storage/StorageClientBase-inl.h +++ b/src/clients/storage/StorageClientBase-inl.h @@ -200,12 +200,13 @@ folly::Future> StorageClientBase(); if (ex && ex->getType() == TransportException::TIMED_OUT) { LOG(ERROR) << "Request to " << host << " time out: " << ex->what(); + return Status::Error("RPC failure in StorageClient, probably timeout: %s", ex->what()); } else { auto partsId = getReqPartsId(request); invalidLeader(spaceId, partsId); LOG(ERROR) << "Request to " << host << " failed."; + return Status::Error("RPC failure in StorageClient, probably timeout."); } - return Status::Error("RPC failure in StorageClient, probably timeout: %s", ex->what()); }); }