mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-09-17 11:34:43 -04:00
fix type in config
This commit is contained in:
parent
82e87042a4
commit
77c068cd19
2 changed files with 8 additions and 6 deletions
|
@ -645,8 +645,8 @@ class VeilidConfigRPC {
|
|||
////////////
|
||||
|
||||
class VeilidConfigRoutingTable {
|
||||
List<PublicKey> nodeId;
|
||||
List<PublicKey> nodeIdSecret;
|
||||
List<TypedKey> nodeId;
|
||||
List<TypedSecret> nodeIdSecret;
|
||||
List<String> bootstrap;
|
||||
int limitOverAttached;
|
||||
int limitFullyAttached;
|
||||
|
@ -679,10 +679,10 @@ class VeilidConfigRoutingTable {
|
|||
}
|
||||
|
||||
VeilidConfigRoutingTable.fromJson(dynamic json)
|
||||
: nodeId = List<PublicKey>.from(
|
||||
json['node_id'].map((j) => PublicKey.fromJson(j))),
|
||||
nodeIdSecret = List<PublicKey>.from(
|
||||
json['node_id_secret'].map((j) => PublicKey.fromJson(j))),
|
||||
: nodeId = List<TypedKey>.from(
|
||||
json['node_id'].map((j) => TypedKey.fromJson(j))),
|
||||
nodeIdSecret = List<TypedSecret>.from(
|
||||
json['node_id_secret'].map((j) => TypedSecret.fromJson(j))),
|
||||
bootstrap = List<String>.from(json['bootstrap'].map((j) => j)),
|
||||
limitOverAttached = json['limit_over_attached'],
|
||||
limitFullyAttached = json['limit_fully_attached'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue