Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
0fc664d5
Commit
0fc664d5
authored
2 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
added missing files for worker
parent
a0f25407
No related branches found
No related tags found
1 merge request
!115
added states table for large client storage
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-0
1 addition, 0 deletions
Makefile
indexedDb/impl/state/stateIndexedDbWorker.js
+21
-0
21 additions, 0 deletions
indexedDb/impl/state/stateIndexedDbWorker.js
with
22 additions
and
0 deletions
Makefile
+
1
−
0
View file @
0fc664d5
...
...
@@ -32,6 +32,7 @@ binary:
worker_binaries
:
GOOS
=
js
GOARCH
=
wasm go build
-ldflags
'-w -s'
-trimpath
-o
xxdk-channelsIndexedDkWorker.wasm ./indexedDb/impl/channels/...
GOOS
=
js
GOARCH
=
wasm go build
-ldflags
'-w -s'
-trimpath
-o
xxdk-dmIndexedDkWorker.wasm ./indexedDb/impl/dm/...
GOOS
=
js
GOARCH
=
wasm go build
-ldflags
'-w -s'
-trimpath
-o
xxdk-stateIndexedDkWorker.wasm ./indexedDb/impl/state/...
GOOS
=
js
GOARCH
=
wasm go build
-ldflags
'-w -s'
-trimpath
-o
xxdk-logFileWorker.wasm ./logging/workerThread/...
binaries
:
binary worker_binaries
...
...
This diff is collapsed.
Click to expand it.
indexedDb/impl/state/stateIndexedDbWorker.js
0 → 100644
+
21
−
0
View file @
0fc664d5
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
importScripts
(
'
wasm_exec.js
'
);
const
isReady
=
new
Promise
((
resolve
)
=>
{
self
.
onWasmInitialized
=
resolve
;
});
const
go
=
new
Go
();
const
binPath
=
'
xxdk-stateIndexedDkWorker.wasm
'
WebAssembly
.
instantiateStreaming
(
fetch
(
binPath
),
go
.
importObject
).
then
(
async
(
result
)
=>
{
go
.
run
(
result
.
instance
);
await
isReady
;
}).
catch
((
err
)
=>
{
console
.
error
(
err
);
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment