git: Parse and display gitaly limit error
Gitaly will soon return errors of the type LimitError. These can occur whenever Gitaly determines that it is overloaded and can't keep up with the current request load. It is a way for Gitaly to impose backpressure on clients. When this error gets returned to workhorse, we want to recognize it and write something meaningful that Git recognizes and can pass through to the end user. This commit changes how we handle errors for upload-pack and receive-pack. Changelog: changed
显示
- workhorse/go.mod 1 个添加, 0 个删除workhorse/go.mod
- workhorse/internal/git/error.go 96 个添加, 0 个删除workhorse/internal/git/error.go
- workhorse/internal/git/error_test.go 80 个添加, 0 个删除workhorse/internal/git/error_test.go
- workhorse/internal/git/git-http.go 10 个添加, 4 个删除workhorse/internal/git/git-http.go
- workhorse/internal/git/receive-pack.go 1 个添加, 1 个删除workhorse/internal/git/receive-pack.go
workhorse/internal/git/error_test.go
0 → 100644
想要评论请 注册 或 登录