mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
Use backwards compatible syntax for config.ttl (#206)
This commit is contained in:
parent
f455716548
commit
c292ce05d7
@ -91,7 +91,7 @@ case class TypeScriptFunc(func: FuncCallable) {
|
|||||||
| .handleTimeout(() => {
|
| .handleTimeout(() => {
|
||||||
| reject('Request timed out for ${func.funcName}');
|
| reject('Request timed out for ${func.funcName}');
|
||||||
| })
|
| })
|
||||||
| if(${configArgName}?.ttl) {
|
| if(${configArgName} && ${configArgName}.ttl) {
|
||||||
| r.withTTL(${configArgName}.ttl)
|
| r.withTTL(${configArgName}.ttl)
|
||||||
| }
|
| }
|
||||||
| request = r.build();
|
| request = r.build();
|
||||||
|
Loading…
Reference in New Issue
Block a user