Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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 database/commit_timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ import (
"fmt"
)

// CommitTimestampError contains the timestamps of the metadata and blob stores
type CommitTimestampError struct {
MetadataTimestamp int64
BlobTimestamp int64
}

// Error returns the stringified error
func (e CommitTimestampError) Error() string {
return fmt.Sprintf(
"commit timestamp mismatch: %d (metadata) != %d (blob)",
Expand Down
1 change: 1 addition & 0 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/blinklabs-io/dingo/database/plugin/metadata"
)

// Database represents our data storage services
type Database struct {
logger *slog.Logger
blob blob.BlobStore
Expand Down
Loading