diff options
-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() } } |