Skip to content

Commit

Permalink
standardize naming
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Jun 24, 2024
1 parent 281aa77 commit acdf356
Show file tree
Hide file tree
Showing 30 changed files with 214 additions and 214 deletions.
4 changes: 2 additions & 2 deletions client/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ type DB interface {
NewConcurrentTxn(context.Context, bool) (datastore.Txn, error)

// Root returns the underlying root store, within which all data managed by DefraDB is held.
Root() datastore.RootStore
Root() datastore.Rootstore

// Blockstore returns the blockstore, within which all blocks (commits) managed by DefraDB are held.
//
// It sits within the rootstore returned by [Root].
Blockstore() datastore.DAGStore
Blockstore() datastore.Blockstore

// Peerstore returns the peerstore where known host information is stored.
//
Expand Down
24 changes: 12 additions & 12 deletions client/mocks/db.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion datastore/blockstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type bstore struct {
}

var _ blockstore.Blockstore = (*bstore)(nil)
var _ DAGStore = (*bstore)(nil)
var _ Blockstore = (*bstore)(nil)

// AsIPLDStorage returns an IPLDStorage instance.
//
Expand Down
Loading

0 comments on commit acdf356

Please sign in to comment.