This PR introduces the environment variables named RATE_LIMIT_QPS and RATE_LIMIT_BURST that can configure the cfg.QPS and cfg.Burst of the used Config. They are meant to be set on the deployment level so that the pods may get them.
If the variables are not set they will default to "" and thus won't pass the check err == nil, which means that the default settings will be used. This PR tries to fix the issue 59.
@Cryptophobia thanks for the guidance. I have ran the command gofmt -s -w router.go and commited the updates. I have also formatted the title as you pointed out.
This PR introduces the environment variables named
RATE_LIMIT_QPS
andRATE_LIMIT_BURST
that can configure thecfg.QPS
andcfg.Burst
of the used Config. They are meant to be set on the deployment level so that the pods may get them.If the variables are not set they will default to
""
and thus won't pass the checkerr == nil
, which means that the default settings will be used. This PR tries to fix the issue 59.