Skip to content

Commit

Permalink
PR FIXUP - Remove unused store prop
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Nov 8, 2024
1 parent 3e25086 commit 5fe4869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions internal/core/crdt/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ package crdt
import (
"context"

"github.com/sourcenetwork/defradb/datastore"
"github.com/sourcenetwork/defradb/internal/core"
"github.com/sourcenetwork/defradb/internal/keys"
)
Expand All @@ -22,8 +21,6 @@ import (
// collection in a similar way to a document composite commit, only simpler,
// without the need to track status and a simpler [Merge] function.
type Collection struct {
store datastore.DSReaderWriter

// schemaVersionKey is the schema version datastore key at the time of commit.
//
// It can be used to identify the collection datastructure state at the time of commit.
Expand All @@ -32,9 +29,8 @@ type Collection struct {

var _ core.ReplicatedData = (*Collection)(nil)

func NewCollection(store datastore.DSReaderWriter, schemaVersionKey keys.CollectionSchemaVersionKey) *Collection {
func NewCollection(schemaVersionKey keys.CollectionSchemaVersionKey) *Collection {
return &Collection{
store: store,
schemaVersionKey: schemaVersionKey,
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/merkle/crdt/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewMerkleCollection(
schemaVersionKey keys.CollectionSchemaVersionKey,
key keys.HeadstoreColKey,
) *MerkleCollection {
register := crdt.NewCollection(store.Datastore(), schemaVersionKey)
register := crdt.NewCollection(schemaVersionKey)

clk := clock.NewMerkleClock(store.Headstore(), store.Blockstore(), store.Encstore(), key, register)

Expand Down

0 comments on commit 5fe4869

Please sign in to comment.