MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / StoreLog

Method StoreLog

lib/datastore/boltdb.go:129–131  ·  view source on GitHub ↗

StoreLog is a method on BoltDbStore that stores a single log entry

(log *raft.Log)

Source from the content-addressed store, hash-verified

127
128// StoreLog is a method on BoltDbStore that stores a single log entry
129func (ds *BoltDbStore) StoreLog(log *raft.Log) error {
130 return ds.StoreLogs([]*raft.Log{log}) // Call the StoreLogs method with a single log entry
131}
132
133// StoreLogs is a method on BoltDbStore that stores multiple log entries
134func (ds *BoltDbStore) StoreLogs(logs []*raft.Log) error {

Callers

nothing calls this directly

Calls 1

StoreLogsMethod · 0.95

Tested by

no test coverage detected