Skip to content

registry: do not use http.StatusTooManyRequests#1696

Merged
RichardScothern merged 1 commit intodistribution:masterfrom
runcom:go1.6-lol
May 4, 2016
Merged

registry: do not use http.StatusTooManyRequests#1696
RichardScothern merged 1 commit intodistribution:masterfrom
runcom:go1.6-lol

Conversation

@runcom
Copy link
Copy Markdown
Contributor

@runcom runcom commented May 3, 2016

go1.5 doesn't export http.StatusTooManyRequests while
go1.6 does. Fix this by hardcoding the status code for now.

ping @aaronlehmann @cpuguy83 @icecrime - we probably could update go to 1.6 but....

Signed-off-by: Antonio Murdaca runcom@redhat.com

go1.5 doesn't export http.StatusTooManyRequests while
go1.6 does. Fix this by hardcoding the status code for now.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
@codecov-io
Copy link
Copy Markdown

Current coverage is 54.66%

Merging #1696 into master will decrease coverage by -6.86%

  1. 3 files (not in diff) in ...istry/storage/driver were modified. more
    • Misses +807
    • Partials -92
    • Hits -715
  2. 1 files (not in diff) in registry were modified. more
    • Misses +6
    • Hits -6
  3. File ...tifications/sinks.go (not in diff) was modified. more
    • Misses -1
    • Partials 0
    • Hits +1
@@             master      #1696   diff @@
==========================================
  Files           120        120          
  Lines         10493      10493          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           6456       5736   -720   
- Misses         3434       4246   +812   
+ Partials        603        511    -92   

Powered by Codecov. Last updated by d4be701...f60f275

@aaronlehmann
Copy link
Copy Markdown

I wish we didn't have to support Go 1.5, but I don't see another choice here until Docker finally upgrades, so... LGTM

@RichardScothern
Copy link
Copy Markdown

a regretful LGTM

@RichardScothern RichardScothern merged commit 9ec0d74 into distribution:master May 4, 2016
@runcom runcom deleted the go1.6-lol branch May 4, 2016 16:45
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Apr 22, 2021
registry: do not use http.StatusTooManyRequests
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Jan 19, 2022
registry: do not use http.StatusTooManyRequests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants