mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
ircd:Ⓜ️ Fix linkages of various constants.
This commit is contained in:
parent
25c43b6aa2
commit
39ad36e3ed
2 changed files with 4 additions and 4 deletions
|
@ -33,17 +33,17 @@ namespace ircd::m::dbs
|
||||||
extern db::column state_node;
|
extern db::column state_node;
|
||||||
|
|
||||||
// Lowlevel util
|
// Lowlevel util
|
||||||
static const size_t ROOM_STATE_KEY_MAX_SIZE {id::MAX_SIZE + 256 + 256};
|
constexpr size_t ROOM_STATE_KEY_MAX_SIZE {id::MAX_SIZE + 256 + 256};
|
||||||
string_view room_state_key(const mutable_buffer &out, const id::room &, const string_view &type, const string_view &state_key);
|
string_view room_state_key(const mutable_buffer &out, const id::room &, const string_view &type, const string_view &state_key);
|
||||||
string_view room_state_key(const mutable_buffer &out, const id::room &, const string_view &type);
|
string_view room_state_key(const mutable_buffer &out, const id::room &, const string_view &type);
|
||||||
std::pair<string_view, string_view> room_state_key(const string_view &amalgam);
|
std::pair<string_view, string_view> room_state_key(const string_view &amalgam);
|
||||||
|
|
||||||
static const size_t ROOM_JOINED_KEY_MAX_SIZE {id::MAX_SIZE + 256 + id::MAX_SIZE};
|
constexpr size_t ROOM_JOINED_KEY_MAX_SIZE {id::MAX_SIZE + 256 + id::MAX_SIZE};
|
||||||
string_view room_joined_key(const mutable_buffer &out, const id::room &, const string_view &origin, const id::user &member);
|
string_view room_joined_key(const mutable_buffer &out, const id::room &, const string_view &origin, const id::user &member);
|
||||||
string_view room_joined_key(const mutable_buffer &out, const id::room &, const string_view &origin);
|
string_view room_joined_key(const mutable_buffer &out, const id::room &, const string_view &origin);
|
||||||
std::pair<string_view, string_view> room_joined_key(const string_view &amalgam);
|
std::pair<string_view, string_view> room_joined_key(const string_view &amalgam);
|
||||||
|
|
||||||
static const size_t ROOM_EVENTS_KEY_MAX_SIZE {id::MAX_SIZE + 1 + 8 + 8};
|
constexpr size_t ROOM_EVENTS_KEY_MAX_SIZE {id::MAX_SIZE + 1 + 8 + 8};
|
||||||
string_view room_events_key(const mutable_buffer &out, const id::room &, const uint64_t &depth, const event::idx &);
|
string_view room_events_key(const mutable_buffer &out, const id::room &, const uint64_t &depth, const event::idx &);
|
||||||
string_view room_events_key(const mutable_buffer &out, const id::room &, const uint64_t &depth);
|
string_view room_events_key(const mutable_buffer &out, const id::room &, const uint64_t &depth);
|
||||||
std::pair<uint64_t, event::idx> room_events_key(const string_view &amalgam);
|
std::pair<uint64_t, event::idx> room_events_key(const string_view &amalgam);
|
||||||
|
|
|
@ -60,7 +60,7 @@ struct ircd::m::id
|
||||||
struct printer static const printer;
|
struct printer static const printer;
|
||||||
struct validator static const validator;
|
struct validator static const validator;
|
||||||
|
|
||||||
static constexpr const size_t MAX_SIZE
|
static constexpr const size_t &MAX_SIZE
|
||||||
{
|
{
|
||||||
255
|
255
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue