File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,14 @@ const mfsPolicyEnableFlag = memoize(async (serviceName, ipfs) => {
2323 try {
2424 return await ipfs . config . get ( `Pinning.RemoteServices.${ serviceName } .Policies.MFS.Enable` )
2525 } catch ( e ) {
26- console . error ( `unexpected config.get error for "${ serviceName } "` , e )
27- return false
26+ if ( e . message ?. includes ( 'Pinning.RemoteServices key has no attributes' ) ) {
27+ try { // retry with notation from https://github.com/ipfs/go-ipfs/pull/8096
28+ return await ipfs . config . get ( `Pinning.RemoteServices["${ serviceName } "].Policies.MFS.Enable` )
29+ } catch ( _ ) { }
30+ }
31+ console . error ( `unexpected config.get error for "${ serviceName } ": ${ e . message } ` )
2832 }
33+ return false
2934} , { maxAge : 3000 } )
3035
3136const uniqueCidBatches = ( arrayOfCids , size ) => {
You can’t perform that action at this time.
0 commit comments