mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-26 16:35:24 -04:00
fix assert
This commit is contained in:
parent
2156449486
commit
a281f09d82
2 changed files with 2 additions and 4 deletions
|
@ -128,8 +128,7 @@ extension DHTRecordDescriptorExt on DHTRecordDescriptor {
|
|||
|
||||
@freezed
|
||||
class ValueSubkeyRange with _$ValueSubkeyRange {
|
||||
@Assert('low < 0 || low > high', 'low out of range')
|
||||
@Assert('high < 0', 'high out of range')
|
||||
@Assert('low >= 0 && low <= high', 'range is invalid')
|
||||
const factory ValueSubkeyRange({
|
||||
required int low,
|
||||
required int high,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue