Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ledger: CurrenciesIn's overflow-bound comment names takeLocked; foldLocked holds the reservation

クローズ 初心者向け
#1,178 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
92/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
backend

調査の方向性

core/cost/ledger/query.go の上限付き分数に関するコメントを読み、次に core/cost/ledger/writer.go の foldLocked にある予約条件を確認します。コメントが takeLocked ではなく foldLocked を示すように更新し、既存の上限の説明は維持してください。コメントが実装と一致し、レビュー確認 C14 に合格すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Found by the round-3 strict review of #1153, in a comment that PR's round 2 added.

core/cost/ledger/query.go says the capped minute keeps maxLabelsPerMinute-1 real rows, "Minus one because takeLocked reserves the last slot for overflowKey itself". The reservation is in foldLocked, not takeLocked — core/cost/ledger/writer.go carries if len(w.rows) >= maxLabelsPerMinute-1 in that function.

The number is right and the conclusion it supports (the overflow row is never the only row) holds. Only the function name is wrong — a mechanism stated without checking the symbol resolves, which is the specific mistake grep -rnE '^func +(\([^)]*\) *)?<Name>\b' catches.

Tracked red by the review harness as check C14, which re-derives the bound from writer.go rather than from the comment.

Assisted-By: Claude (Anthropic AI) [email protected]

主要言語
Go
スター
16
フォーク
41
平均マージ
11時間 22分
マージ済み PR(30日)
267

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rossoctl/cortex のほかの issue

rossoctl/cortex の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。