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
d206b0b9
Commit
d206b0b9
authored
2 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix suppressed error
parent
580921a3
No related branches found
No related tags found
1 merge request
!60
Revert "Fail a test to be sure it works"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indexedDb/init.go
+4
-1
4 additions, 1 deletion
indexedDb/init.go
with
4 additions
and
1 deletion
indexedDb/init.go
+
4
−
1
View file @
d206b0b9
...
@@ -59,7 +59,7 @@ func newWASMModel(databaseName string, cb MessageReceivedCallback) (
...
@@ -59,7 +59,7 @@ func newWASMModel(databaseName string, cb MessageReceivedCallback) (
// Attempt to open database object
// Attempt to open database object
ctx
,
cancel
:=
newContext
()
ctx
,
cancel
:=
newContext
()
defer
cancel
()
defer
cancel
()
openRequest
,
_
:=
idb
.
Global
()
.
Open
(
ctx
,
databaseName
,
currentVersion
,
openRequest
,
err
:=
idb
.
Global
()
.
Open
(
ctx
,
databaseName
,
currentVersion
,
func
(
db
*
idb
.
Database
,
oldVersion
,
newVersion
uint
)
error
{
func
(
db
*
idb
.
Database
,
oldVersion
,
newVersion
uint
)
error
{
if
oldVersion
==
newVersion
{
if
oldVersion
==
newVersion
{
jww
.
INFO
.
Printf
(
"IndexDb version is current: v%d"
,
jww
.
INFO
.
Printf
(
"IndexDb version is current: v%d"
,
...
@@ -81,6 +81,9 @@ func newWASMModel(databaseName string, cb MessageReceivedCallback) (
...
@@ -81,6 +81,9 @@ func newWASMModel(databaseName string, cb MessageReceivedCallback) (
// if oldVersion == 1 && newVersion >= 2 { v2Upgrade(), oldVersion = 2 }
// if oldVersion == 1 && newVersion >= 2 { v2Upgrade(), oldVersion = 2 }
return
nil
return
nil
})
})
if
err
!=
nil
{
return
nil
,
err
}
// Wait for database open to finish
// Wait for database open to finish
db
,
err
:=
openRequest
.
Await
(
ctx
)
db
,
err
:=
openRequest
.
Await
(
ctx
)
...
...
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