Skip to content
Snippets Groups Projects
Commit 6942dca5 authored by Jake Taylor's avatar Jake Taylor
Browse files

refactor to unify login function

parent ab3c480e
No related branches found
No related tags found
3 merge requests!510Release,!265refactor to unify login function,!263Hotfix/refactor cmd
......@@ -25,6 +25,7 @@ import (
// or from a new storage that it will create if none already exists
func loadOrInitPrecan(precanId uint, password []byte, storeDir string,
cmixParams xxdk.CMIXParams, e2eParams xxdk.E2EParams) *xxdk.E2e {
jww.INFO.Printf("Using Precanned sender")
// create a new client if none exist
var net *xxdk.Cmix
......@@ -63,7 +64,6 @@ func loadOrInitPrecan(precanId uint, password []byte, storeDir string,
}
}
jww.INFO.Printf("Using Precanned sender")
messenger, err := xxdk.Login(net, authCbs, identity, e2eParams)
if err != nil {
jww.FATAL.Panicf("%+v", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment