Skip to content

Commit

Permalink
Drop embedded LeaderTracker
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Oct 11, 2024
1 parent 30922ad commit b3c99ba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions client/database_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"fmt"
"strings"

"github.com/canonical/go-dqlite/internal/protocol"
_ "github.com/mattn/go-sqlite3" // Go SQLite bindings
"github.com/pkg/errors"
)
Expand All @@ -23,7 +22,6 @@ type nodeStoreOptions struct {

// DatabaseNodeStore persists a list addresses of dqlite nodes in a SQL table.
type DatabaseNodeStore struct {
protocol.LeaderTracker
db *sql.DB // Database handle to use.
schema string // Name of the schema holding the servers table.
table string // Name of the servers table.
Expand Down
1 change: 0 additions & 1 deletion client/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ var NewInmemNodeStore = protocol.NewInmemNodeStore

// Persists a list addresses of dqlite nodes in a YAML file.
type YamlNodeStore struct {
protocol.LeaderTracker
path string
servers []NodeInfo
mu sync.RWMutex
Expand Down
1 change: 0 additions & 1 deletion internal/protocol/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type NodeStore interface {

// InmemNodeStore keeps the list of servers in memory.
type InmemNodeStore struct {
LeaderTracker
mu sync.RWMutex
servers []NodeInfo
}
Expand Down

0 comments on commit b3c99ba

Please sign in to comment.