fixed bug where daemon could not list contracts
This commit is contained in:
parent
3b62e4d2bd
commit
3ab668c4b1
@ -218,7 +218,7 @@ impl BrainDaemonService for BrainDaemonMock {
|
||||
) -> Result<Response<Self::ListVMContractsStream>, Status> {
|
||||
let req = req.into_inner();
|
||||
info!("Node {} requested ListVMContractsStream", req.node_pubkey);
|
||||
let contracts = self.data.find_contracts_by_admin_pubkey(&req.node_pubkey);
|
||||
let contracts = self.data.find_contracts_by_node_pubkey(&req.node_pubkey);
|
||||
let (tx, rx) = mpsc::channel(6);
|
||||
tokio::spawn(async move {
|
||||
for contract in contracts {
|
||||
|
Loading…
Reference in New Issue
Block a user