ShouldReconnectOnError and Compress are defaulted to true with New()

This commit is contained in:
Bruce Marriner 2016-01-24 13:21:32 -06:00
parent 8453404305
commit 94b6199051

View file

@ -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.