fix
Some checks failed
linux-x64-gcc / linux-gcc (Release) (push) Failing after 3m2s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 4m26s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 4m46s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 5m37s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 5m42s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 6m23s
Some checks failed
linux-x64-gcc / linux-gcc (Release) (push) Failing after 3m2s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 4m26s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 4m46s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 5m37s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 5m42s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 6m23s
This commit is contained in:
parent
00788da459
commit
5888266152
@ -12,7 +12,7 @@
|
||||
#include <assert.h>
|
||||
// clang-format off
|
||||
#include <fmt/ostream.h>// support fmt base ostream
|
||||
#include <fmt/time.h>
|
||||
// #include <fmt/time.h>
|
||||
|
||||
|
||||
namespace {
|
||||
|
@ -107,7 +107,7 @@
|
||||
#include "sled/uri.h"
|
||||
|
||||
// testing
|
||||
#include "sled/testing/test.h"
|
||||
// #include "sled/testing/test.h"
|
||||
|
||||
// debugging
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
#ifndef SLED_STATUS_H
|
||||
#define SLED_STATUS_H
|
||||
|
||||
#include "fmt/ostream.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
@ -15,23 +16,23 @@
|
||||
namespace sled {
|
||||
|
||||
enum class StatusCode {
|
||||
kOk = 0,
|
||||
kCancelled = 1,
|
||||
kUnknown = 2,
|
||||
kInvalidArgument = 3,
|
||||
kDeadlineExceeded = 4,
|
||||
kNotFound = 5,
|
||||
kAlreadyExists = 6,
|
||||
kPermissionDenied = 7,
|
||||
kResourceExhausted = 8,
|
||||
kOk = 0,
|
||||
kCancelled = 1,
|
||||
kUnknown = 2,
|
||||
kInvalidArgument = 3,
|
||||
kDeadlineExceeded = 4,
|
||||
kNotFound = 5,
|
||||
kAlreadyExists = 6,
|
||||
kPermissionDenied = 7,
|
||||
kResourceExhausted = 8,
|
||||
kFailedPrecondition = 9,
|
||||
kAborted = 10,
|
||||
kOutOfRange = 11,
|
||||
kUnimplemented = 12,
|
||||
kInternal = 13,
|
||||
kUnavailable = 14,
|
||||
kDataLoss = 15,
|
||||
kUnauthenticated = 16,
|
||||
kAborted = 10,
|
||||
kOutOfRange = 11,
|
||||
kUnimplemented = 12,
|
||||
kInternal = 13,
|
||||
kUnavailable = 14,
|
||||
kDataLoss = 15,
|
||||
kUnauthenticated = 16,
|
||||
};
|
||||
|
||||
std::string StatusCodeToString(StatusCode code);
|
||||
@ -102,4 +103,8 @@ std::ostream &operator<<(std::ostream &os, sled::Status const &status);
|
||||
|
||||
}// namespace sled
|
||||
|
||||
namespace fmt {
|
||||
template<>
|
||||
struct formatter<::sled::Status> : ostream_formatter {};
|
||||
}// namespace fmt
|
||||
#endif// SLED_STATUS_H
|
||||
|
Loading…
Reference in New Issue
Block a user