Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ linters:
- "go.etcd.io/etcd/client/v3"
- "github.com/tarantool/go-tarantool/v2"
- "github.com/tarantool/go-option"
- "github.com/vmihailenco/msgpack/v5"
test:
files:
- "$test"
allow:
- $gostd
- "github.com/tarantool/go-storage"
- "github.com/stretchr/testify"
- "github.com/tarantool/go-tarantool/v2"
4 changes: 3 additions & 1 deletion driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ type Driver interface {

// Watch establishes a watch stream for changes to a specific key or prefix.
// The returned channel will receive events as changes occur.
Watch(ctx context.Context, key []byte, opts ...watch.Option) <-chan watch.Event
// The returned cleanup function should be called to stop the watch and release resources.
// An error is returned if the watch could not be established.
Watch(ctx context.Context, key []byte, opts ...watch.Option) (<-chan watch.Event, func(), error)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a tests that the TCS driver implements the Driver interface.

}
2 changes: 1 addition & 1 deletion driver/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ func (d Driver) Execute(

// Watch monitors changes to a specific key and returns a stream of events.
// It supports optional watch configuration through the opts parameter.
func (d Driver) Watch(_ context.Context, _ []byte, _ ...watch.Option) <-chan watch.Event {
func (d Driver) Watch(_ context.Context, _ []byte, _ ...watch.Option) (<-chan watch.Event, func(), error) {
panic("implement me")
}
84 changes: 0 additions & 84 deletions driver/tcs/tcs.go

This file was deleted.

Loading
Loading