Commit 57fefc5
authored
fix(rustffi): reject empty disconnect lists (#5107)
## Summary
- reject empty address lists in the Rust FFI disconnect wrapper before
per-address dispatch
- return the same `addresses cannot be empty` validation error expected
from other clients
- complete the peer-info acceptance coverage for
[sourcenetwork/defradb.rs#1261](sourcenetwork/defradb.rs#1261)
and
[sourcenetwork/defradb.rs#1257](sourcenetwork/defradb.rs#1257)
## Verification
- [x] `TestNetInfoDisconnectEmptyList`
- [x] `net/info`: 7 passed, 0 failed
- [x] `net/simple/replicator`: 29 passed, 0 failed
- [x] `gofmt`
- [x] `git diff --check`1 parent 6755b55 commit 57fefc5
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2051 | 2051 | | |
2052 | 2052 | | |
2053 | 2053 | | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
2054 | 2057 | | |
2055 | 2058 | | |
2056 | 2059 | | |
| |||
0 commit comments