increase max subscription ID length, needed for hamstr client

This commit is contained in:
Doug Hoyte
2023-02-05 15:41:59 -05:00
parent fc6d5eea2e
commit 43cdd64956
2 changed files with 4 additions and 4 deletions

View File

@ -6,11 +6,11 @@
struct SubId {
char buf[64];
char buf[72];
SubId(std::string_view val) {
static_assert(MAX_SUBID_SIZE == 63, "MAX_SUBID_SIZE mismatch");
if (val.size() > 63) throw herr("subscription id too long");
static_assert(MAX_SUBID_SIZE == 71, "MAX_SUBID_SIZE mismatch");
if (val.size() > 71) throw herr("subscription id too long");
if (val.size() == 0) throw herr("subscription id too short");
auto badChar = [](char c){