hive-c0re: drop stale 'question' example from check_size doc
This commit is contained in:
parent
b7b8aae8e8
commit
63c7c4ae2c
2 changed files with 12 additions and 6 deletions
|
|
@ -26,8 +26,8 @@ pub const MESSAGE_MAX_BYTES: usize = 4096;
|
|||
/// `Response::Err`) on failure.
|
||||
///
|
||||
/// `label` shows up in the error message verbatim — pass a short
|
||||
/// noun like `"send"`, `"question"`, `"broadcast"` so the model can
|
||||
/// tell which call got rejected.
|
||||
/// noun like `"send"` or `"broadcast"` so the model can tell which
|
||||
/// call got rejected.
|
||||
pub fn check_size(label: &str, body: &str) -> Result<(), String> {
|
||||
if body.len() > MESSAGE_MAX_BYTES {
|
||||
Err(format!(
|
||||
|
|
|
|||
Loading…
Reference in a new issue