Skip to content

Commit

Permalink
create newctstorage more beautifuler
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Aug 1, 2024
1 parent 44ce02b commit d49cf56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions personalities/ct-static-api/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ type CTStorage struct {

// NewCTStorage instantiates a CTStorage object.
func NewCTSTorage(logStorage tessera.Storage) (*CTStorage, error) {
ctStorage := new(CTStorage)
ctStorage.storeData = tessera.NewCertificateTransparencySequencedWriter(logStorage)
ctStorage := &CTStorage{

storeData: tessera.NewCertificateTransparencySequencedWriter(logStorage),
}
return ctStorage, nil
}

Expand Down

0 comments on commit d49cf56

Please sign in to comment.