Skip to content

Commit

Permalink
Fix for rebase.
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
  • Loading branch information
edwarnicke committed Nov 8, 2021
1 parent 1c5c3e1 commit 9d8cc81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (i *ipaddressClient) Request(ctx context.Context, request *networkservice.N
}

func (i *ipaddressClient) Close(ctx context.Context, conn *networkservice.Connection, opts ...grpc.CallOption) (*empty.Empty, error) {
if err := addDel(ctx, conn, i.vppConn, metadata.IsClient(i), false); err != nil {
if err := addDel(ctx, conn, i.vppConn, i.loadIfIndex, metadata.IsClient(i), false); err != nil {
log.FromContext(ctx).Warnf(err.Error())
}
return next.Client(ctx).Close(ctx, conn, opts...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (i *ipaddressServer) Request(ctx context.Context, request *networkservice.N
}

func (i *ipaddressServer) Close(ctx context.Context, conn *networkservice.Connection) (*empty.Empty, error) {
if err := addDel(ctx, conn, i.vppConn, metadata.IsClient(i), false); err != nil {
if err := addDel(ctx, conn, i.vppConn, i.loadIfIndex, metadata.IsClient(i), false); err != nil {
log.FromContext(ctx).Warnf(err.Error())
}
return next.Server(ctx).Close(ctx, conn)
Expand Down

0 comments on commit 9d8cc81

Please sign in to comment.