config.go 191 B

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