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