add and update examples

This commit is contained in:
DieMyst
2021-07-23 11:57:44 +03:00
parent e1ad9917cb
commit 0bf0ba6d94
31 changed files with 215 additions and 137 deletions

View File

@ -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();