@@ -7,6 +7,7 @@ import type { NotificationsManager } from '../notifications';
77import * as grpc from '@grpc/grpc-js' ;
88import * as utilsPB from '../proto/js/polykey/v1/utils/utils_pb' ;
99import * as nodesPB from '../proto/js/polykey/v1/nodes/nodes_pb' ;
10+ import * as vaultsPB from '../proto/js/polykey/v1/vaults/vaults_pb' ;
1011import * as utils from '../client/utils' ;
1112import * as nodesUtils from '../nodes/utils' ;
1213import * as grpcUtils from '../grpc/utils' ;
@@ -151,10 +152,7 @@ const createNodesRPC = ({
151152 callback ( null , response ) ;
152153 } ,
153154 nodesScan : async (
154- call : grpc . ServerWritableStream <
155- clientPB . NodeMessage ,
156- clientPB . VaultListMessage
157- > ,
155+ call : grpc . ServerWritableStream < nodesPB . Node , vaultsPB . List > ,
158156 ) : Promise < void > => {
159157 const genWritable = grpcUtils . generatorWritable ( call ) ;
160158 const nodeId = makeNodeId ( call . request . getNodeId ( ) ) ;
@@ -166,7 +164,7 @@ const createNodesRPC = ({
166164 call . sendMetadata ( responseMeta ) ;
167165 const list = await nodeManager . scanNodeVaults ( nodeId ) ;
168166 for ( const vault of list ) {
169- const vaultListMessage = new clientPB . VaultListMessage ( ) ;
167+ const vaultListMessage = new vaultsPB . List ( ) ;
170168 vaultListMessage . setVaultName ( vault [ 0 ] ) ;
171169 vaultListMessage . setVaultId ( vaultsUtils . makeVaultIdPretty ( vault [ 1 ] ) ) ;
172170 await genWritable . next ( vaultListMessage ) ;
0 commit comments