Use peers and groups map for peers validation

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga
2025-01-15 12:50:25 +03:00
parent 6367fe4f74
commit 4afaabb33c
4 changed files with 11 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ func TestMigrateNetIPFieldFromBlobToJSON_WithJSONData(t *testing.T) {
err = db.Save(&types.Account{
Id: "1234",
PeersG: []*nbpeer.Peer{
PeersG: []nbpeer.Peer{
{Location: nbpeer.Location{ConnectionIP: net.IP{10, 0, 0, 1}}},
}},
).Error