mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-21 16:41:33 +00:00
add and update examples
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.1.8-SNAPSHOT
|
||||
* Aqua version: 0.1.9-SNAPSHOT
|
||||
*
|
||||
*/
|
||||
import { FluenceClient, PeerIdB58 } from '@fluencelabs/fluence';
|
||||
@ -70,7 +70,7 @@ export async function getPeerExternalAddresses(client: FluenceClient, otherNodeP
|
||||
.handleTimeout(() => {
|
||||
reject('Request timed out for getPeerExternalAddresses');
|
||||
})
|
||||
if(config?.ttl) {
|
||||
if(config && config.ttl) {
|
||||
r.withTTL(config.ttl)
|
||||
}
|
||||
request = r.build();
|
||||
@ -155,7 +155,7 @@ h.on('getDataSrv', 'viaNode', () => {return viaNode;});
|
||||
.handleTimeout(() => {
|
||||
reject('Request timed out for getDistantAddresses');
|
||||
})
|
||||
if(config?.ttl) {
|
||||
if(config && config.ttl) {
|
||||
r.withTTL(config.ttl)
|
||||
}
|
||||
request = r.build();
|
||||
|
Reference in New Issue
Block a user