Skip to content

Commit

Permalink
remove method
Browse files Browse the repository at this point in the history
  • Loading branch information
y-du committed Feb 2, 2024
1 parent b71c271 commit 81da7ab
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions api/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,3 @@ func (a *Api) RemoveEndpointsByRef(ctx context.Context, ref string) (string, err
return err
})
}

func (a *Api) RemoveEndpointAlias(ctx context.Context, id string) (string, error) {
return a.jobHandler.Create(ctx, fmt.Sprintf("remove endpoint alias '%s'", id), func(ctx context.Context, cf context.CancelFunc) error {
defer cf()
err := a.gwEndpointHdl.RemoveAlias(ctx, id)
if err == nil {
err = ctx.Err()
}
return err
})
}

0 comments on commit 81da7ab

Please sign in to comment.