diff --git a/kuzzle/kuzzle.go b/kuzzle/kuzzle.go index b417a44f..c1a537bc 100644 --- a/kuzzle/kuzzle.go +++ b/kuzzle/kuzzle.go @@ -33,7 +33,7 @@ import ( ) const ( - version = "2.0.1" + version = "2.0.2" MAX_CONNECT_RETRY = 10 ) @@ -197,7 +197,7 @@ func (k *Kuzzle) Connect() error { k.EmitEvent(event.NetworkError, err) } }() - k.protocol.AddListener(event.NetworkError, ee) + k.protocol.Once(event.NetworkError, ee) return nil } diff --git a/kuzzle/query_test.go b/kuzzle/query_test.go index 81431e86..006b583b 100644 --- a/kuzzle/query_test.go +++ b/kuzzle/query_test.go @@ -96,7 +96,7 @@ func TestQueryWithOptions(t *testing.T) { func TestQueryWithVolatile(t *testing.T) { var k *kuzzle.Kuzzle - var volatileData = types.VolatileData(`{"modifiedBy":"awesome me","reason":"it needed to be modified","sdkVersion":"2.0.1"}`) + var volatileData = types.VolatileData(`{"modifiedBy":"awesome me","reason":"it needed to be modified","sdkVersion":"2.0.2"}`) c := &internal.MockedConnection{ MockSend: func(query []byte, options types.QueryOptions) *types.KuzzleResponse {