Skip to content
Snippets Groups Projects
Commit d479cb88 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Call to trigger a backup when initializing the backup.

parent 893f5350
No related branches found
No related tags found
2 merge requests!231Revert "Update store to print changes to the partners list",!171RestoreContactsFromBackup
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
package backup package backup
import ( import (
"sync"
"github.com/pkg/errors" "github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/api" "gitlab.com/elixxir/client/api"
...@@ -22,7 +24,6 @@ import ( ...@@ -22,7 +24,6 @@ import (
"gitlab.com/elixxir/client/storage" "gitlab.com/elixxir/client/storage"
"gitlab.com/elixxir/crypto/backup" "gitlab.com/elixxir/crypto/backup"
"gitlab.com/elixxir/crypto/fastRNG" "gitlab.com/elixxir/crypto/fastRNG"
"sync"
) )
// Error messages. // Error messages.
...@@ -110,6 +111,7 @@ func initializeBackup(password string, updateBackupCb UpdateBackupFn, ...@@ -110,6 +111,7 @@ func initializeBackup(password string, updateBackupCb UpdateBackupFn,
// Setting backup trigger in client // Setting backup trigger in client
b.backupContainer.SetBackup(b.TriggerBackup) b.backupContainer.SetBackup(b.TriggerBackup)
b.backupContainer.TriggerBackup("initializeBackup")
jww.INFO.Print("Initialized backup with new user key.") jww.INFO.Print("Initialized backup with new user key.")
return b, nil return b, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment