diff --git a/Makefile b/Makefile index af7ed72..c66f9a4 100644 --- a/Makefile +++ b/Makefile @@ -10,4 +10,4 @@ build: go build -o bin/lock test-examples/lock/main.go coverage: - go tool cover -func coverage.cov | grep ^total + go tool cover -func coverage.out | grep ^total diff --git a/README.md b/README.md index edd0d55..c7ff152 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,20 @@ [![zk](https://github.com/QuangTung97/zk/actions/workflows/go.yml/badge.svg)](https://github.com/QuangTung97/zk/actions/workflows/go.yml) [![Coverage Status](https://coveralls.io/repos/github/QuangTung97/zk/badge.svg?branch=master)](https://coveralls.io/github/QuangTung97/zk?branch=master) +Forked from https://github.com/go-zookeeper/zk + +But have replaced most of its interface to help achieve better guarantees: +* Watches, Response Function Calls and other Callbacks (Session Expired, Connection Retry, etc.) +are all happened in a single thread +* Strong watch guarantee: Watch Response Callback MUST happen BEFORE the Response of Create/Set/Delete +that affects the Watch +* When connection is disconnected, all pending operations MUST be finished or response with +errors before a new connection is going to be established + +## Examples +Examples can be found here: https://github.com/QuangTung97/zk/tree/master/test-examples + + ## License 3-clause BSD. See LICENSE file. diff --git a/client_integration_test.go b/client_integration_test.go index f907ca6..eed0fc4 100644 --- a/client_integration_test.go +++ b/client_integration_test.go @@ -1520,7 +1520,7 @@ func TestClientInternal_ACL(t *testing.T) { var steps []string var respErrors []error - pathVal := "/workers01" + pathVal := "/acl_mismatch" c.Create( pathVal, []byte("data01"), FlagEphemeral, diff --git a/todolist b/todolist index a16a2f9..2f8879a 100644 --- a/todolist +++ b/todolist @@ -1,4 +1,3 @@ -*) Add CI Pipeline for Integration Tests *) Add Lint *) Batching Read & Write to TCP (Need to do or not?) *) Stress Tests with Race Detector