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
41fe4ea3
Commit
41fe4ea3
authored
1 year ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Fix smoke test
parent
98d7f8a3
No related branches found
No related tags found
1 merge request
!109
Project/haven beta
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.go
+1
-1
1 addition, 1 deletion
main.go
wasm/cmix.go
+2
-2
2 additions, 2 deletions
wasm/cmix.go
wasm_test.go
+3
-0
3 additions, 0 deletions
wasm_test.go
with
6 additions
and
3 deletions
main.go
+
1
−
1
View file @
41fe4ea3
...
@@ -149,7 +149,7 @@ func setGlobals() {
...
@@ -149,7 +149,7 @@ func setGlobals() {
js
.
Global
()
.
Set
(
"NewCmix"
,
js
.
FuncOf
(
wasm
.
NewCmix
))
js
.
Global
()
.
Set
(
"NewCmix"
,
js
.
FuncOf
(
wasm
.
NewCmix
))
js
.
Global
()
.
Set
(
"LoadCmix"
,
js
.
FuncOf
(
wasm
.
LoadCmix
))
js
.
Global
()
.
Set
(
"LoadCmix"
,
js
.
FuncOf
(
wasm
.
LoadCmix
))
js
.
Global
()
.
Set
(
"LoadSynchronizedCmix"
,
js
.
Global
()
.
Set
(
"LoadSynchronizedCmix"
,
js
.
FuncOf
(
wasm
.
LoadSync
r
honizedCmix
))
js
.
FuncOf
(
wasm
.
LoadSynch
r
onizedCmix
))
// wasm/delivery.go
// wasm/delivery.go
js
.
Global
()
.
Set
(
"SetDashboardURL"
,
js
.
FuncOf
(
wasm
.
SetDashboardURL
))
js
.
Global
()
.
Set
(
"SetDashboardURL"
,
js
.
FuncOf
(
wasm
.
SetDashboardURL
))
...
...
This diff is collapsed.
Click to expand it.
wasm/cmix.go
+
2
−
2
View file @
41fe4ea3
...
@@ -144,7 +144,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
...
@@ -144,7 +144,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
return
utils
.
CreatePromise
(
promiseFn
)
return
utils
.
CreatePromise
(
promiseFn
)
}
}
// LoadSync
r
honizedCmix will [LoadCmix] using a RemoteStore to establish
// LoadSynch
r
onizedCmix will [LoadCmix] using a RemoteStore to establish
// a synchronized RemoteKV.
// a synchronized RemoteKV.
//
//
// Parameters:
// Parameters:
...
@@ -156,7 +156,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
...
@@ -156,7 +156,7 @@ func LoadCmix(_ js.Value, args []js.Value) any {
// Returns a promise:
// Returns a promise:
// - Resolves to a Javascript representation of the [Cmix] object.
// - Resolves to a Javascript representation of the [Cmix] object.
// - Rejected with an error if loading [Cmix] fails.
// - Rejected with an error if loading [Cmix] fails.
func
LoadSync
r
honizedCmix
(
_
js
.
Value
,
args
[]
js
.
Value
)
any
{
func
LoadSynch
r
onizedCmix
(
_
js
.
Value
,
args
[]
js
.
Value
)
any
{
storageDir
:=
args
[
0
]
.
String
()
storageDir
:=
args
[
0
]
.
String
()
password
:=
utils
.
CopyBytesToGo
(
args
[
1
])
password
:=
utils
.
CopyBytesToGo
(
args
[
1
])
rs
:=
newRemoteStore
(
args
[
2
])
rs
:=
newRemoteStore
(
args
[
2
])
...
...
This diff is collapsed.
Click to expand it.
wasm_test.go
+
3
−
0
View file @
41fe4ea3
...
@@ -66,6 +66,9 @@ func TestPublicFunctions(t *testing.T) {
...
@@ -66,6 +66,9 @@ func TestPublicFunctions(t *testing.T) {
// Logging has been moved to startup flags
// Logging has been moved to startup flags
"LogLevel"
:
{},
"LogLevel"
:
{},
// NewFilesystemRemoteStorage is internal for bindings.
"NewFileSystemRemoteStorage"
:
{},
}
}
wasmFuncs
:=
getPublicFunctions
(
"wasm"
,
t
)
wasmFuncs
:=
getPublicFunctions
(
"wasm"
,
t
)
bindingsFuncs
:=
getPublicFunctions
(
bindingsFuncs
:=
getPublicFunctions
(
...
...
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