Fixes for build script

This commit is contained in:
Pavel Murygin 2021-03-19 09:23:44 +03:00
parent 87cc957580
commit 6d3f41cff3
6 changed files with 8 additions and 8 deletions

View File

@ -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!])
)
)

View File

@ -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
fldist deploy_app --env local -s Fs6nQaGEsM5EgnprUbUtoLYWhUC8o6QK1gseP9pfhzUm -i app/app.config.json -o client/src/app.json

View File

@ -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];

View File

@ -1 +1 @@
{ "name": "history" }
{"name":"history"}

View File

@ -1 +1 @@
{ "name": "user-list" }
{"name":"user-list"}

View File

@ -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