From 6d3f41cff314b42e936d1a0eaa8b176b7e72763b Mon Sep 17 00:00:00 2001 From: Pavel Murygin Date: Fri, 19 Mar 2021 09:23:44 +0300 Subject: [PATCH] Fixes for build script --- app/remove_disconnected.air | 2 +- build_app.sh | 2 +- client/src/components/UserList.tsx | 4 ++-- services/artifacts/history.json | 2 +- services/artifacts/user-list.json | 2 +- services/build.sh | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/remove_disconnected.air b/app/remove_disconnected.air index fd1143b..4e2a4bf 100644 --- a/app/remove_disconnected.air +++ b/app/remove_disconnected.air @@ -6,7 +6,7 @@ (par (seq (call u.$.relay_id! ("peer" "is_connected") [u.$.peer_id!] is_connected) - (match is_connected "" + (match is_connected false (call %init_peer_id% ({{user_list}} "leave") [u.$.peer_id!]) ) ) diff --git a/build_app.sh b/build_app.sh index fda7159..76143ae 100644 --- a/build_app.sh +++ b/build_app.sh @@ -7,4 +7,4 @@ rm -f app/*.wasm cp -f services/artifacts/*.wasm app/ -echo fldist deploy_app "$@" -i app/app.config.json -o client/src/app.json \ No newline at end of file +fldist deploy_app --env local -s Fs6nQaGEsM5EgnprUbUtoLYWhUC8o6QK1gseP9pfhzUm -i app/app.config.json -o client/src/app.json diff --git a/client/src/components/UserList.tsx b/client/src/components/UserList.tsx index dc2a8f6..c3d8bc5 100644 --- a/client/src/components/UserList.tsx +++ b/client/src/components/UserList.tsx @@ -16,7 +16,7 @@ interface User { isOnline: boolean; } -const refreshTimeoutMs = 2000; +const refreshOnlineStatusTimeoutMs = 2000; export const UserList = (props: { selfName: string }) => { const client = useFluenceClient()!; @@ -28,7 +28,7 @@ export const UserList = (props: { selfName: string }) => { withErrorHandlingAsync(async () => { await api.updateOnlineStatuses(client); }); - }, refreshTimeoutMs); + }, refreshOnlineStatusTimeoutMs); const unsub1 = subscribeToEvent(client, fluentPadServiceId, notifyUserAddedFnName, (args, _) => { const [user, isOnline] = args as [api.User, boolean]; diff --git a/services/artifacts/history.json b/services/artifacts/history.json index dd57a68..e22ec98 100644 --- a/services/artifacts/history.json +++ b/services/artifacts/history.json @@ -1 +1 @@ -{ "name": "history" } +{"name":"history"} diff --git a/services/artifacts/user-list.json b/services/artifacts/user-list.json index d65e080..d28a06f 100644 --- a/services/artifacts/user-list.json +++ b/services/artifacts/user-list.json @@ -1 +1 @@ -{ "name": "user-list" } +{"name":"user-list"} diff --git a/services/build.sh b/services/build.sh index d2a57c2..7cf9742 100755 --- a/services/build.sh +++ b/services/build.sh @@ -11,10 +11,10 @@ fce build --release ) -rm -f artifacts/user-list.wasm +rm -f artifacts/user_list.wasm rm -f artifacts/history.wasm mkdir -p artifacts -cp user-list-inmemory/target/wasm32-wasi/release/user-list.wasm artifacts/ +cp user-list-inmemory/target/wasm32-wasi/release/user_list.wasm artifacts/ echo '{"name":"user-list"}' > artifacts/user-list.json cp history-inmemory/target/wasm32-wasi/release/history.wasm artifacts/ echo '{"name":"history"}' > artifacts/history.json