From eff95941968b4c5ca5866ed8be75ed2c51ff3c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Celi?= Date: Fri, 15 Nov 2019 21:54:44 +0800 Subject: [PATCH 1/2] Fix signature of function --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index b516468..0c6f54d 100644 --- a/app/app.go +++ b/app/app.go @@ -73,7 +73,7 @@ func NewApp(acn connectivity.ACN, appDirectory string) Application { } // CreatePeer creates a new Peer with a given name and core required accessories (eventbus) -func (ac *applicationCore) CreatePeer(name string, password string) (*model.Profile, error) { +func (ac *applicationCore) CreatePeer(name string) (*model.Profile, error) { log.Debugf("CreatePeer(%v)\n", name) profile := storage.NewProfile(name) From 7e3b5420d946269791cf7d9567a91841e7ba8d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Celi?= Date: Fri, 29 Nov 2019 21:11:12 -0500 Subject: [PATCH 2/2] Fix renaming of signature of function --- app/app.go | 2 +- app/appService.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 0c6f54d..4984770 100644 --- a/app/app.go +++ b/app/app.go @@ -94,7 +94,7 @@ func (ac *applicationCore) CreatePeer(name string) (*model.Profile, error) { // CreatePeer creates a new Peer with the given name and required accessories (eventbus, storage, protocol engine) func (app *application) CreatePeer(name string, password string) { - profile, err := app.applicationCore.CreatePeer(name, password) + profile, err := app.applicationCore.CreatePeer(name) if err != nil { app.appBus.Publish(event.NewEventList(event.PeerError, event.Error, err.Error())) return diff --git a/app/appService.go b/app/appService.go index cb6af8f..03539e8 100644 --- a/app/appService.go +++ b/app/appService.go @@ -81,7 +81,7 @@ func (as *applicationService) handleEvent(ev *event.Event) { func (as *applicationService) createPeer(name, password string) { log.Infof("app Service create peer %v %v\n", name, password) - profile, err := as.applicationCore.CreatePeer(name, password) + profile, err := as.applicationCore.CreatePeer(name) as.eventBuses[profile.Onion] = event.IPCEventManagerFrom(as.bridge, profile.Onion, as.eventBuses[profile.Onion]) if err != nil { log.Errorf("Could not create Peer: %v\n", err)