fixed : code style

This commit is contained in:
lgbo-ustc 2021-11-12 13:56:06 +08:00 committed by liangjiabiao
parent a66a23c2e7
commit d0de8ce961
2 changed files with 2 additions and 3 deletions

View File

@ -126,7 +126,7 @@ RemoteReadBufferCacheError RemoteCacheController::waitMoreData(size_t start_offs
return RemoteReadBufferCacheError::OK;
}
else
more_data_signal.wait(lock, [this, end_offset_] { return this->download_finished || this->current_offset >= end_offset_ ;});
more_data_signal.wait(lock, [this, end_offset_] { return this->download_finished || this->current_offset >= end_offset_; });
}
lock.unlock();
return RemoteReadBufferCacheError::OK;
@ -436,7 +436,6 @@ void RemoteReadBufferCache::recover_cached_files_meta(
auto &cell = caches[path];
cell.cache_controller = cache_cntrl;
cell.key_iterator = keys.insert(keys.end(), path);
}
return;
}

View File

@ -221,7 +221,7 @@ private:
std::filesystem::path calculateLocalPath(const RemoteFileMeta &meta);
void recover_cached_files_meta(
const std::filesystem::path & current_path_,
const std::filesystem::path & current_path_,
size_t current_depth,
size_t max_depth,
std::function<void(RemoteCacheController *)> const & finish_callback);