store/fields: Use one MaxTermLength everywhere

One should be enough!
This commit is contained in:
Dirk-Jan C. Binnema
2022-05-09 20:10:37 +03:00
parent dc69505580
commit 7470a5f8ea
4 changed files with 5 additions and 6 deletions

View File

@ -572,7 +572,7 @@ Server::Private::contacts_handler(const Parameters& params)
static std::vector<Store::Id>
docids_for_msgid(const Store& store, const std::string& msgid, size_t max = 100)
{
if (msgid.size() > Store::MaxTermLength) {
if (msgid.size() > MaxTermLength) {
throw Error(Error::Code::InvalidArgument,
"invalid message-id '%s'", msgid.c_str());
}