Skip to content

Commit d661d0b

Browse files
authored
Update to latest internal module (#14541)
Ensure that ResponseError is a NonRetriableError
1 parent aa6ba0a commit d661d0b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sdk/azcore/error.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ type NonRetriableError interface {
5050
func NewResponseError(inner error, resp *http.Response) error {
5151
return sdkruntime.NewResponseError(inner, resp)
5252
}
53+
54+
var _ NonRetriableError = (*sdkruntime.ResponseError)(nil)

sdk/azcore/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/Azure/azure-sdk-for-go/sdk/azcore
22

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

sdk/azcore/go.sum

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

0 commit comments

Comments
 (0)