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
|
@ -33,8 +33,10 @@ func New(args ...interface{}) (s *Session, err error) {
|
||||||
|
|
||||||
// Create an empty Session interface.
|
// Create an empty Session interface.
|
||||||
s = &Session{
|
s = &Session{
|
||||||
State: NewState(),
|
State: NewState(),
|
||||||
StateEnabled: true,
|
StateEnabled: true,
|
||||||
|
Compress: true,
|
||||||
|
ShouldReconnectOnError: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// If no arguments are passed return the empty Session interface.
|
// If no arguments are passed return the empty Session interface.
|
||||||
|
|
Loading…
Reference in a new issue