Skip to content

Commit 2e4686c

Browse files
corylanouclaude
andcommitted
docs(replica): add documentation comment for FetchLTXHeader
Add missing documentation comment for the FetchLTXHeader helper function to improve code clarity. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 42fc519 commit 2e4686c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

replica_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func FetchPageIndex(ctx context.Context, client ReplicaClient, info *ltx.FileInf
8888
return ltx.DecodePageIndex(bufio.NewReader(rc), info.Level, info.MinTXID, info.MaxTXID)
8989
}
9090

91+
// FetchLTXHeader reads & returns the LTX header for the given file info.
9192
func FetchLTXHeader(ctx context.Context, client ReplicaClient, info *ltx.FileInfo) (ltx.Header, error) {
9293
rc, err := client.OpenLTXFile(ctx, info.Level, info.MinTXID, info.MaxTXID, 0, ltx.HeaderSize)
9394
if err != nil {

0 commit comments

Comments
 (0)