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>
This commit is contained in:
Sebastiaan van Stijn 2023-08-27 15:18:50 +02:00
parent dc061d2ed3
commit 6a61bacafe
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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
}