gh-ost/go/logic
Tim Vaillancourt 0918bab29b
Add context/timeout to HTTP throttle check (#1131)
* Add context/timeout to HTTP throttle check

* Dont run `.GetThrottleHTTPInterval()` on every loop

* Update help message

* Var rename

* 2022

* Add timeout flag

* Add unix/tcp server commands, use ParseInt() for string->int64

* Var rename

* Re-check http timeout on every loop iteration

* Remove stale comment

* Make throttle interval idempotent

* var rename

* Usage grammar

* Make http timeout idempotent too

* Parse time.Duration once

* Move timeout to NewThrottler

* Help update

* Set User-Agent header

* Re-add newline

Co-authored-by: dm-2 <45519614+dm-2@users.noreply.github.com>
2022-07-06 23:56:07 +02:00
..
applier.go Ensure mysql rows responses are closed (#1132) 2022-07-06 23:32:15 +02:00
hooks.go Add golangci-lint CI action, fix gosimple, govet + unused lint errors (#1127) 2022-05-31 21:23:39 +02:00
inspect.go Add golangci-lint CI action, fix gosimple, govet + unused lint errors (#1127) 2022-05-31 21:23:39 +02:00
migrator.go Add context/timeout to HTTP throttle check (#1131) 2022-07-06 23:56:07 +02:00
server.go Add mysql port and version 2021-04-03 23:24:29 +02:00
streamer.go Use switch statements for readability, simplify .NewGoMySQLReader() (#1135) 2022-07-06 23:45:26 +02:00
throttler.go Add context/timeout to HTTP throttle check (#1131) 2022-07-06 23:56:07 +02:00