Fix non-working echo greeting service

This commit is contained in:
Pavel Murygin 2021-09-13 00:30:00 +03:00
parent 37e848c9f5
commit 65c2de58c0
3 changed files with 2613 additions and 14 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
], ],
"dependencies": { "dependencies": {
"@fluencelabs/aqua-lib": "^0.1.14", "@fluencelabs/aqua-lib": "^0.1.14",
"@fluencelabs/fluence": "^0.11.0", "@fluencelabs/fluence": "^0.12.0",
"@fluencelabs/fluence-network-environment": "^1.0.10", "@fluencelabs/fluence-network-environment": "^1.0.10",
"it-all": "^1.0.5" "it-all": "^1.0.5"
}, },

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { setLogLevel, FluencePeer } from "@fluencelabs/fluence"; import { setLogLevel, Fluence, FluencePeer } from "@fluencelabs/fluence";
import { krasnodar, Node } from "@fluencelabs/fluence-network-environment"; import { krasnodar, Node } from "@fluencelabs/fluence-network-environment";
import { import {
echo, echo,
@ -94,8 +94,8 @@ async function main() {
await Fluence.start({ connectTo: krasnodar[2] }); await Fluence.start({ connectTo: krasnodar[2] });
console.log( console.log(
"created a fluence client %s with relay %s", "created a fluence client %s with relay %s",
FluencePeer.default.connectionInfo.selfPeerId, Fluence.getStatus().peerId,
FluencePeer.default.connectionInfo.connectedRelay Fluence.getStatus().relayPeerId
); );
let echo_result = await echo( let echo_result = await echo(