ShouldReconnectOnError and Compress are defaulted to true with New()
This commit is contained in:
parent
8453404305
commit
94b6199051
1 changed files with 4 additions and 2 deletions
|
@ -35,6 +35,8 @@ func New(args ...interface{}) (s *Session, err error) {
|
|||
s = &Session{
|
||||
State: NewState(),
|
||||
StateEnabled: true,
|
||||
Compress: true,
|
||||
ShouldReconnectOnError: true,
|
||||
}
|
||||
|
||||
// If no arguments are passed return the empty Session interface.
|
||||
|
|
Loading…
Reference in a new issue