Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hyemmie committed Aug 4, 2023
1 parent da13d22 commit 46e23b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions server/backend/database/memory/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ func (d *DB) CreateSnapshotInfo(
return nil
}

// FindClosestSnapshotFullData finds the last snapshot's full data (with Snapshot) of the given document.
// FindClosestSnapshotFullData finds the last snapshot of the given document.
func (d *DB) FindClosestSnapshotFullData(
ctx context.Context,
docID types.ID,
Expand All @@ -991,7 +991,8 @@ func (d *DB) FindClosestSnapshotFullData(
return snapshotInfo, nil
}

// FindClosestSnapshotMetadata finds the last snapshot's metadata (without Snapshot) of the given document.
// FindClosestSnapshotMetadata finds the last snapshot of the given document and return snapshot's metadata.
// (without Snapshotinfo.Snapshot)
func (d *DB) FindClosestSnapshotMetadata(
ctx context.Context,
docID types.ID,
Expand Down
4 changes: 2 additions & 2 deletions server/backend/database/mongo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,8 @@ func (c *Client) FindClosestSnapshotFullData(
return snapshotInfo, nil
}

// FindClosestSnapshotFullData finds the last snapshot of the given document and return snapshot's metadata
// (without Snapshotinfo.Snapshot).
// FindClosestSnapshotMetadata finds the last snapshot of the given document and return snapshot's metadata.
// (without Snapshotinfo.Snapshot)
func (c *Client) FindClosestSnapshotMetadata(
ctx context.Context,
docID types.ID,
Expand Down

0 comments on commit 46e23b0

Please sign in to comment.