diff --git a/peer/cwtch_peer.go b/peer/cwtch_peer.go index a0d70f5..03eb857 100644 --- a/peer/cwtch_peer.go +++ b/peer/cwtch_peer.go @@ -144,7 +144,7 @@ func (cp *cwtchPeer) setup() { } } -// NewCwtchPeer creates and returns a new CwtchPeer with the given name. +// NewCwtchPeer creates and returns a new cwtchPeer with the given name. func NewCwtchPeer(name string, password string) CwtchPeerInterface { cp := new(cwtchPeer) cp.Profile = model.GenerateNewProfile(name) @@ -155,7 +155,7 @@ func NewCwtchPeer(name string, password string) CwtchPeerInterface { return cp } -// Save saves the CwtchPeer profile state to a file. +// Save saves the cwtchPeer profile state to a file. func (cp *cwtchPeer) Save(profilefile string) error { cp.mutex.Lock() encryptedbytes := EncryptProfile(cp, cp.password) @@ -166,7 +166,7 @@ func (cp *cwtchPeer) Save(profilefile string) error { return err } -// LoadCwtchPeer loads an existing CwtchPeer from a file. CHECK METHOD RETURN +// LoadCwtchPeer loads an existing CwtchPeer from a file. func LoadCwtchPeer(profilefile string, password string) (*cwtchPeer, error) { encryptedbytes, _ := ioutil.ReadFile(profilefile)