diff options
author | Vladimir Lavor <vlavor@cisco.com> | 2018-07-03 10:39:21 +0200 |
---|---|---|
committer | Vladimir Lavor <vlavor@cisco.com> | 2018-07-06 13:18:01 +0200 |
commit | f1bef4a3c66f4408afdeb64cda62ccd8562d0fc6 (patch) | |
tree | 5767c18051f97362a00b1a4dfe90ec9480247032 /core/notification_handler.go | |
parent | 5276b9439d0f902e125a5113bfa4f1b6622aea18 (diff) |
make api.Channel as interface
Change-Id: I052d241ab09043b1195beebeee99df4d8536621f
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'core/notification_handler.go')
-rw-r--r-- | core/notification_handler.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/notification_handler.go b/core/notification_handler.go index 89c16a4..c0e8687 100644 --- a/core/notification_handler.go +++ b/core/notification_handler.go @@ -18,13 +18,12 @@ import ( "fmt" "reflect" - logger "github.com/sirupsen/logrus" - "git.fd.io/govpp.git/api" + logger "github.com/sirupsen/logrus" ) // processNotifSubscribeRequest processes a notification subscribe request. -func (c *Connection) processNotifSubscribeRequest(ch *api.Channel, req *api.NotifSubscribeRequest) error { +func (c *Connection) processNotifSubscribeRequest(ch *channel, req *api.NotifSubscribeRequest) error { var err error // subscribe / unsubscribe @@ -36,7 +35,7 @@ func (c *Connection) processNotifSubscribeRequest(ch *api.Channel, req *api.Noti // send the reply into the go channel select { - case ch.NotifSubsReplyChan <- err: + case ch.notifSubsReplyChan <- err: // reply sent successfully default: // unable to write into the channel without blocking |