Skip to content

Commit

Permalink
Update to latest internal module (#14541)
Browse files Browse the repository at this point in the history
Ensure that ResponseError is a NonRetriableError
  • Loading branch information
jhendrixMSFT authored Apr 15, 2021
1 parent aa6ba0a commit d661d0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions sdk/azcore/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ type NonRetriableError interface {
func NewResponseError(inner error, resp *http.Response) error {
return sdkruntime.NewResponseError(inner, resp)
}

var _ NonRetriableError = (*sdkruntime.ResponseError)(nil)
2 changes: 1 addition & 1 deletion sdk/azcore/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/Azure/azure-sdk-for-go/sdk/azcore

require (
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.0
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.1
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb
)

Expand Down
4 changes: 2 additions & 2 deletions sdk/azcore/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.0 h1:HG1ggl8L3ZkV/Ydanf7lKr5kkhhPGCpWdnr1J6v7cO4=
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.0/go.mod h1:k4KbFSunV/+0hOHL1vyFaPsiYQ1Vmvy1TBpmtvCDLZM=
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.1 h1:vx8McI56N5oLSQu8xa+xdiE0fjQq8W8Zt49vHP8Rygw=
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.1/go.mod h1:k4KbFSunV/+0hOHL1vyFaPsiYQ1Vmvy1TBpmtvCDLZM=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
Expand Down

0 comments on commit d661d0b

Please sign in to comment.