config.go 170 B

123456789101112
  1. package transport
  2. type Config struct {
  3. ConnectionReuse bool
  4. }
  5. func (this *Config) Apply() error {
  6. if this.ConnectionReuse {
  7. connectionReuse = true
  8. }
  9. return nil
  10. }