Skip to content

Commit

Permalink
Merge pull request #23228 from andrwng/cloud-io-results
Browse files Browse the repository at this point in the history
cloud_io: put io_result in cloud_io namespace
  • Loading branch information
andrwng authored Sep 8, 2024
2 parents 4787845 + 45bf4f0 commit 0689d00
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 73 deletions.
4 changes: 2 additions & 2 deletions src/v/cloud_io/io_result.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
#include "cloud_io/io_result.h"

namespace cloud_storage {
namespace cloud_io {

std::ostream& operator<<(std::ostream& o, const download_result& r) {
switch (r) {
Expand Down Expand Up @@ -47,4 +47,4 @@ std::ostream& operator<<(std::ostream& o, const upload_result& r) {
return o;
}

} // namespace cloud_storage
} // namespace cloud_io
5 changes: 2 additions & 3 deletions src/v/cloud_io/io_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
#include <cstdint>
#include <iostream>

// TODO: move into cloud_io namespace.
namespace cloud_storage {
namespace cloud_io {

enum class [[nodiscard]] download_result : int32_t {
success,
Expand All @@ -31,4 +30,4 @@ enum class [[nodiscard]] upload_result : int32_t {
std::ostream& operator<<(std::ostream& o, const download_result& r);
std::ostream& operator<<(std::ostream& o, const upload_result& r);

} // namespace cloud_storage
} // namespace cloud_io
Loading

0 comments on commit 0689d00

Please sign in to comment.