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 năm trước cách đây
mục cha
commit
6a61bacafe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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{}
 
-func (r *rollbackEndpoint) Interface() driverapi.InterfaceInfo {
+func (r *rollbackEndpoint) Interface() *rollbackEndpoint {
 	return r
 }