Browse Source

libnetwork/drivers/remote: rollbackEndpoint.Interface: return concrete type

Interface-matching should generally happen on the receiver side, and this
function was only used in a single location, and passed as argument to
Driver.CreateEndpoint, which already matches the interface by accepting
a driverapi.InterfaceInfo.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 year ago
parent
commit
6a61bacafe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/drivers/remote/driver_test.go

+ 1 - 1
libnetwork/drivers/remote/driver_test.go

@@ -546,7 +546,7 @@ func TestMissingValues(t *testing.T) {
 
 
 type rollbackEndpoint struct{}
 type rollbackEndpoint struct{}
 
 
-func (r *rollbackEndpoint) Interface() driverapi.InterfaceInfo {
+func (r *rollbackEndpoint) Interface() *rollbackEndpoint {
 	return r
 	return r
 }
 }