@@ -282,8 +282,10 @@ export class PeerbitCanonicalClient {
282282 ) ;
283283 if ( ! adapter ) {
284284 const knownVariants = state . adapters
285- . flatMap ( ( candidate ) =>
286- candidate . variants ?? ( candidate . variant ? [ candidate . variant ] : [ ] ) ,
285+ . flatMap (
286+ ( candidate ) =>
287+ candidate . variants ??
288+ ( candidate . variant ? [ candidate . variant ] : [ ] ) ,
287289 )
288290 . filter ( ( x ) : x is string => typeof x === "string" && x . length > 0 ) ;
289291 throw new Error (
@@ -293,7 +295,10 @@ export class PeerbitCanonicalClient {
293295 ) ;
294296 }
295297
296- const key = adapter . getKey ?.( program as any , openOptions as OpenOptions < any > ) ;
298+ const key = adapter . getKey ?.(
299+ program as any ,
300+ openOptions as OpenOptions < any > ,
301+ ) ;
297302 if ( adapter . getKey && key === undefined ) {
298303 throw new Error (
299304 `Canonical adapter '${ adapter . name } ' requires a cache key (adapter.getKey returned undefined)` ,
@@ -328,14 +333,14 @@ export class PeerbitCanonicalClient {
328333 }
329334 }
330335
331- const peer = this as any as ProgramClient ;
332- const openPromise = ( async ( ) => {
333- const result = await adapter . open ( {
334- program : program as any ,
335- options : openOptions as OpenOptions < any > ,
336- peer,
337- client : this . canonical ,
338- } ) ;
336+ const peer = this as any as ProgramClient ;
337+ const openPromise = ( async ( ) => {
338+ const result = await adapter . open ( {
339+ program : program as any ,
340+ options : openOptions as OpenOptions < any > ,
341+ peer,
342+ client : this . canonical ,
343+ } ) ;
339344
340345 let managed : any ;
341346 managed = createManagedProxy ( result . proxy as any , {
0 commit comments