Skip to content

Commit

Permalink
Fix other docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutchinson committed Dec 5, 2024
1 parent 889d9d7 commit 6103bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (s *Storage) maybeInitTree(ctx context.Context) error {
}

// ReadCheckpoint returns the latest stored checkpoint.
// If the checkpoint is not found, nil is returned with no error.
// If the checkpoint is not found, it returns os.ErrNotExist.
func (s *Storage) ReadCheckpoint(ctx context.Context) ([]byte, error) {
row := s.db.QueryRowContext(ctx, selectCheckpointByIDSQL, checkpointID)
if err := row.Err(); err != nil {
Expand Down Expand Up @@ -208,7 +208,7 @@ type treeState struct {
}

// readTreeState returns the currently stored tree state information.
// If there is no stored tree state, nil is returned with no error.
// If there is no stored tree state, it returns os.ErrNotExist.
func (s *Storage) readTreeState(ctx context.Context, tx *sql.Tx) (*treeState, error) {
row := tx.QueryRowContext(ctx, selectTreeStateByIDForUpdateSQL, treeStateID)
if err := row.Err(); err != nil {
Expand Down

0 comments on commit 6103bee

Please sign in to comment.