Skip to content

Commit 3ec8634

Browse files
committed
Fix shadow error
1 parent 691545c commit 3ec8634

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloud/cloud_log_controller.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ Status CloudLogController::StartTailingStream(const std::string & topic) {
242242
return Status::Busy("Tailer already started");
243243
}
244244

245-
Status status = CreateStream(topic);
246-
if (status.ok()) {
245+
Status st = CreateStream(topic);
246+
if (st.ok()) {
247247
running_ = true;
248248
// create tailer thread
249249
auto lambda = [this]() { TailStream(); };
250250
tid_.reset(new std::thread(lambda));
251251
}
252-
return Status::OK();
252+
return st;
253253
}
254254

255255
void CloudLogController::StopTailingStream() {

0 commit comments

Comments
 (0)