From 93c9813d9647d4e1650573e6ccd7da006d9cc9d3 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 20 Apr 2023 13:36:43 -0700 Subject: [PATCH] Move EngineHooks into Protocol --- app/app.go | 2 +- {app => protocol/connections}/enginehooks.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {app => protocol/connections}/enginehooks.go (91%) diff --git a/app/app.go b/app/app.go index df1f893..e74f7a2 100644 --- a/app/app.go +++ b/app/app.go @@ -99,7 +99,7 @@ func NewApp(acn connectivity.ACN, appDirectory string, settings *settings.Global app := &application{engines: make(map[string]connections.Engine), eventBuses: make(map[string]event.Manager), directory: appDirectory, appBus: event.NewEventManager(), settings: settings} app.peers = make(map[string]peer.CwtchPeer) - app.engineHooks = DefaultEngineHooks{} + app.engineHooks = connections.DefaultEngineHooks{} app.acn = acn statusHandler := app.getACNStatusHandler() acn.SetStatusCallback(statusHandler) diff --git a/app/enginehooks.go b/protocol/connections/enginehooks.go similarity index 91% rename from app/enginehooks.go rename to protocol/connections/enginehooks.go index 97d3bbd..adcb90b 100644 --- a/app/enginehooks.go +++ b/protocol/connections/enginehooks.go @@ -1,4 +1,4 @@ -package app +package connections import "git.openprivacy.ca/cwtch.im/tapir"