Changed capitalization of cwtchPeer (again) and updated LoadCwtchPeer to use the interface

This commit is contained in:
Angus Champion de Crespigny 2018-06-24 15:04:33 -04:00 committed by Gogs
parent 67adc0fbce
commit 2b039b2e9f
1 changed files with 2 additions and 2 deletions

View File

@ -166,8 +166,8 @@ func (cp *cwtchPeer) Save(profilefile string) error {
return err
}
// LoadCwtchPeer loads an existing CwtchPeer from a file.
func LoadCwtchPeer(profilefile string, password string) (*cwtchPeer, error) {
// LoadCwtchPeer loads an existing cwtchPeer from a file.
func LoadCwtchPeer(profilefile string, password string) (CwtchPeerInterface, error) {
encryptedbytes, _ := ioutil.ReadFile(profilefile)
//get the salt