Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: add pd client option to enable request redirection #23025

Merged
merged 10 commits into from
Mar 16, 2021
Prev Previous commit
Next Next commit
fix the test
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Mar 16, 2021
commit a56fc56616b0cf1180c1b25460b2b6cb9b274905
16 changes: 0 additions & 16 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,22 +315,6 @@ enable-telemetry = false
c.Assert(conf.Load(configFile), IsNil)
c.Assert(conf.EnableTelemetry, Equals, false)

_, err = f.WriteString(`
enable-forwarding = true
`)
c.Assert(err, IsNil)
c.Assert(f.Sync(), IsNil)
c.Assert(conf.Load(configFile), IsNil)
c.Assert(conf.EnableForwarding, Equals, true)

_, err = f.WriteString(`
enable-forwarding = false
`)
c.Assert(err, IsNil)
c.Assert(f.Sync(), IsNil)
c.Assert(conf.Load(configFile), IsNil)
c.Assert(conf.EnableForwarding, Equals, false)

_, err = f.WriteString(`
[security]
spilled-file-encryption-method = "aes128-ctr"
Expand Down