refactor create dht value
This commit is contained in:
@@ -277,10 +277,10 @@ impl JsonRequestProcessor {
|
||||
),
|
||||
}
|
||||
}
|
||||
RoutingContextRequestOp::CreateDhtRecord { kind, schema } => {
|
||||
RoutingContextRequestOp::CreateDhtRecord { schema, kind } => {
|
||||
RoutingContextResponseOp::CreateDhtRecord {
|
||||
result: to_json_api_result(
|
||||
routing_context.create_dht_record(kind, schema).await,
|
||||
routing_context.create_dht_record(schema, kind).await,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
@@ -38,9 +38,9 @@ pub enum RoutingContextRequestOp {
|
||||
message: Vec<u8>,
|
||||
},
|
||||
CreateDhtRecord {
|
||||
#[schemars(with = "String")]
|
||||
kind: CryptoKind,
|
||||
schema: DHTSchema,
|
||||
#[schemars(with = "Option<String>")]
|
||||
kind: Option<CryptoKind>,
|
||||
},
|
||||
OpenDhtRecord {
|
||||
#[schemars(with = "String")]
|
||||
|
Reference in New Issue
Block a user