fix: large value_data length in api crashes server
This commit is contained in:
committed by
Christien Rioux
parent
513116e672
commit
0ce19d85fa
@@ -402,9 +402,9 @@ impl StorageManager {
|
||||
return Ok(None);
|
||||
}
|
||||
let seq = last_signed_value_data.value_data().seq();
|
||||
ValueData::new_with_seq(seq + 1, data, writer.key)
|
||||
ValueData::new_with_seq(seq + 1, data, writer.key)?
|
||||
} else {
|
||||
ValueData::new(data, writer.key)
|
||||
ValueData::new(data, writer.key)?
|
||||
};
|
||||
|
||||
// Validate with schema
|
||||
|
Reference in New Issue
Block a user