h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
https://fly.io/docs/app-guides/run-a-global-image-service/
MIT License
5.55k stars 456 forks source link

Update middleware.go #353

Closed alexbowers closed 10 months ago

alexbowers commented 3 years ago

Before these changes, compiling myself I would get:

go: downloading github.com/throttled/throttled v1.0.0
go: downloading github.com/throttled/throttled/v2 v2.7.1
go: downloading github.com/throttled/throttled v2.2.5+incompatible
go get: gopkg.in/throttled/throttled.v2@v2.0.3 updating to
    gopkg.in/throttled/throttled.v2@v2.7.1: parsing go.mod:
    module declares its path as: github.com/throttled/throttled/v2
            but was required as: gopkg.in/throttled/throttled.v2
suntong commented 10 months ago

This seems very necessary as per https://github.com/throttled/throttled

I'm wondering why it hasn't been taken yet.