Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Feb 14, 2024
1 parent 6b818cf commit 849c9b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storer/internal/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The rules of the transction is as follows:
-on commit -> if batch_commit succeeds, release sharky_release locations from the disk
-> if batch_commit fails or is not called, release all sharky_write location from the disk, do nothing for sharky_release
See the transaction method for more details.
See the NewTransaction method for more details.
*/

package transaction
Expand Down Expand Up @@ -134,7 +134,7 @@ func (s *store) ChunkStore() storage.ReadOnlyChunkStore {

// Run creates a new transaction and gives the caller access to the transaction
// in the form of a callback function. After the callback returns, the transaction
// is committed to the disk. See the Transaction method for more details on how transactions operate internally.
// is committed to the disk. See the NewTransaction method for more details on how transactions operate internally.
func (s *store) Run(ctx context.Context, f func(Store) error) error {
trx, done := s.NewTransaction(ctx)
defer done()
Expand Down

0 comments on commit 849c9b2

Please sign in to comment.