Replace StreamID with an opaque bigint
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
- 領域
- backend, networking
調査の方向性
ファイルやテストパスは指定されていません。まず basicnet 内の StreamID 参照を追跡し、特にブロードキャスターの NodeID を決定するロジックを確認して、コンテキストとして issue #21 を調べてください。識別子が不透明な bigint になり、basicnet がその内部構造や逆引きに依存しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
For a Livepeer node, this corresponds to the JobID, from which the StreamID can be looked up easily on-chain. Other off-chain applications can use the bigint as a lookup key.
Currently, the only time StreamID is used concretely within basicnet is to determine the broadcaster's NodeID. We should be able to work around this. Treat the ID as an opaque identifier that's used only by the API consumer, not basicnet.
Benefits:
- The StreamID right now is not a canonical identifier; we need to maintain a reverse lookup table for the JobID to find any transcoder information. This is additional bookkeping that we should avoid.
- Concretely, solves this issue https://github.com/livepeer/go-livepeer-basicnet/issues/21#issuecomment-369310870
- Doesn't make assumptions about the structure of the StreamID within basicnet. This reduces coupling with Livepeer -- other systems might not want to make the same assumptions about their bookkeeping.
- Further decouples basicnet from Livepeer; keeping this identifier opaque means any changes to the ID in Livepeer doesn't necessitate changes in basicnet.
- 主要言語
- Go
- スター
- 18
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
livepeer/go-livepeer-basicnet のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
livepeer/go-livepeer-basicnet#39 · リアクション 1 件 ·
-
Routing Loopsオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
livepeer/go-livepeer-basicnet#37 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
livepeer/go-livepeer-basicnet#34 · コメント 3 件 · リアクション 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
livepeer/go-livepeer-basicnet#33 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
livepeer/go-livepeer-basicnet の issue をすべて見る
似ている issue
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
netdata/netdata#24062 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
meshery/meshery#22119 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
automation documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信