kevo/pkg/engine/storage/manager_wal.go
Jeremy Tregunna f9e332096c feat: Update client sdk (Go) with smart connection logic
- Client SDK will connect to a node, get node information and decide if
  it needs to connect to a primary for writes, or pick a replica to
  connect to for reads
- Updated service with a GetNodeInfo rpc call which returns information
  about the node to enable the smart selection code in the sdks
2025-04-29 15:03:03 -06:00

15 lines
268 B
Go

package storage
import (
"github.com/KevoDB/kevo/pkg/wal"
)
// GetWAL returns the storage manager's WAL instance
// This is used by the replication manager to access the WAL
func (m *Manager) GetWAL() *wal.WAL {
m.mu.RLock()
defer m.mu.RUnlock()
return m.wal
}