Skip to content

Commit

Permalink
Refactor storage package to use StorageService interface instead of *…
Browse files Browse the repository at this point in the history
…storage.Storage
  • Loading branch information
i5heu committed May 16, 2024
1 parent 88e9311 commit 9a2a74e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/storage/rootEvents.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ const (
RootEventPrefix = "RootEvent:"
)

var RootEventParentEventHash [64]byte

func init() {
RootEventParentEventHash = [64]byte{'R', 'o', 'o', 't', 'E', 'v', 'e', 'n', 't'}
}

// Same as Event struct in storageService.go but without some unnecessary fields

func (ss *Storage) CreateRootEvent(title string) (types.Event, error) {
// Create a new IndexEvent
item := types.Event{
Expand Down

0 comments on commit 9a2a74e

Please sign in to comment.