Skip to content

Commit

Permalink
Merge a0fbc29 into f1281ec
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangTung97 committed Apr 4, 2024
2 parents f1281ec + a0fbc29 commit b506365
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion client_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion todolist
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b506365

Please sign in to comment.