Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hyemmie committed Aug 5, 2023
1 parent 592e6f8 commit b9dddec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion server/backend/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ type Database interface {
FindSnapshotInfoByID(ctx context.Context, id types.ID) (*SnapshotInfo, error)

// FindClosestSnapshotInfo finds the closest snapshot info in a given serverSeq.
FindClosestSnapshotInfo(ctx context.Context, docID types.ID, serverSeq int64, includeSnapshot bool) (*SnapshotInfo, error)
FindClosestSnapshotInfo(
ctx context.Context,
docID types.ID,
serverSeq int64,
includeSnapshot bool,
) (*SnapshotInfo, error)

// FindMinSyncedSeqInfo finds the minimum synced sequence info.
FindMinSyncedSeqInfo(ctx context.Context, docID types.ID) (*SyncedSeqInfo, error)
Expand Down
2 changes: 1 addition & 1 deletion server/backend/database/memory/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ func (d *DB) FindClosestSnapshotInfo(
ID: info.ID,
DocID: info.DocID,
ServerSeq: info.ServerSeq,
Lamport: info.Lamport,
Lamport: info.Lamport,
CreatedAt: info.CreatedAt,
}
if includeSnapshot {
Expand Down
12 changes: 6 additions & 6 deletions server/backend/database/snapshot_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ func (i *SnapshotInfo) DeepCopy() *SnapshotInfo {
}

return &SnapshotInfo{
ID: i.ID,
DocID: i.DocID,
ServerSeq: i.ServerSeq,
Lamport: i.Lamport,
Snapshot: i.Snapshot,
CreatedAt: i.CreatedAt,
ID: i.ID,
DocID: i.DocID,
ServerSeq: i.ServerSeq,
Lamport: i.Lamport,
Snapshot: i.Snapshot,
CreatedAt: i.CreatedAt,
}
}

0 comments on commit b9dddec

Please sign in to comment.