Fix empty adapter 15/13015/1
authorOndrej Fabry <ofabry@cisco.com>
Tue, 12 Jun 2018 20:18:47 +0000 (22:18 +0200)
committerOndrej Fabry <ofabry@cisco.com>
Tue, 12 Jun 2018 20:18:47 +0000 (22:18 +0200)
Change-Id: I4472aeb5f8ceb682c8520723ae094fc1cd306b3d
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
adapter/vppapiclient/empty_adapter.go

index 7249864..c3010a0 100644 (file)
@@ -27,7 +27,7 @@ import (
 
 type vppAPIClientAdapter struct{}
 
-func NewVppAdapter() adapter.VppAdapter {
+func NewVppAdapter(string) adapter.VppAdapter {
        return &vppAPIClientAdapter{}
 }
 
@@ -51,6 +51,6 @@ func (a *vppAPIClientAdapter) SetMsgCallback(cb func(context uint32, msgID uint1
        // no op
 }
 
-func (a *vppAPIClientAdapter) WaitReady() func() error {
-       return func() error { return nil }
+func (a *vppAPIClientAdapter) WaitReady() error {
+       return nil
 }