From 46e23b0f0cd8ce6f145b9ef2fb8de3a55c8c59b9 Mon Sep 17 00:00:00 2001 From: hyemmie Date: Fri, 4 Aug 2023 12:21:10 +0900 Subject: [PATCH] update comments --- server/backend/database/memory/database.go | 5 +++-- server/backend/database/mongo/client.go | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server/backend/database/memory/database.go b/server/backend/database/memory/database.go index 9d453e045..9e30399a4 100644 --- a/server/backend/database/memory/database.go +++ b/server/backend/database/memory/database.go @@ -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, @@ -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, diff --git a/server/backend/database/mongo/client.go b/server/backend/database/mongo/client.go index bb29d6586..945ebec6b 100644 --- a/server/backend/database/mongo/client.go +++ b/server/backend/database/mongo/client.go @@ -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,