Code Review
/
govpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
0036cf1
)
Merge "Mock Adapter: Switch back to handlers once the queue is empty."
author
Rastislav Szabo
<raszabo@cisco.com>
Thu, 4 Jan 2018 08:43:47 +0000
(08:43 +0000)
committer
Gerrit Code Review
<gerrit@fd.io>
Thu, 4 Jan 2018 08:43:47 +0000
(08:43 +0000)
adapter/mock/mock_adapter.go
patch
|
blob
|
history
diff --git
a/adapter/mock/mock_adapter.go
b/adapter/mock/mock_adapter.go
index
af54ced
..
d8a80d6
100644
(file)
--- a/
adapter/mock/mock_adapter.go
+++ b/
adapter/mock/mock_adapter.go
@@
-261,6
+261,11
@@
func (a *VppAdapter) SendMsg(clientID uint32, data []byte) error {
}
if len(replies) > 0 {
replies = []api.Message{}
+ if len(replyHandlers) > 0 {
+ // Switch back to handlers once the queue is empty to revert back
+ // the fallthrough effect.
+ mode = useReplyHandlers
+ }
return nil
}