diff options
author | brecode <nikos.bre@gmail.com> | 2019-02-07 13:07:11 -0800 |
---|---|---|
committer | brecode <nikos.bre@gmail.com> | 2019-02-07 13:07:27 -0800 |
commit | 8ba70a7b13950593aab9863246f830eda450f06b (patch) | |
tree | 7d16738462bb76eee830f01d8a9344e2a9e5897a | |
parent | eb571ee5c0cf5a5194d6ae9aaa0be6e24ea2a943 (diff) |
Mock VPP adapter nit
- change the api reference from api.GetAllMessages()
to GetRegisteredMessages()
Change-Id: I8ba43b7640f3482e8398dd1e35dd74d71de0fc4e
Signed-off-by: Nikos Bregiannis <nikos.bre@gmail.com>
-rw-r--r-- | adapter/mock/mock_vpp_adapter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/mock/mock_vpp_adapter.go b/adapter/mock/mock_vpp_adapter.go index 9783651..9dca2ba 100644 --- a/adapter/mock/mock_vpp_adapter.go +++ b/adapter/mock/mock_vpp_adapter.go @@ -134,7 +134,7 @@ func (a *VppAdapter) GetMsgNameByID(msgID uint16) (string, bool) { func (a *VppAdapter) registerBinAPITypes() { a.access.Lock() defer a.access.Unlock() - for _, msg := range api.GetAllMessages() { + for _, msg := range api.GetRegisteredMessages() { a.binAPITypes[msg.GetMessageName()] = reflect.TypeOf(msg).Elem() } } |