Skip to content

何度も同じeventIdをfetchしないようにする #29

Description

@motxx
  • 一度取得したeventはキャッシュする (eventId => event)
  • 取得に失敗した場合も、既に問い合わせた (eventId, relayUrl) のペアでキャッシュする
  • kind: 1 に限らず、取得済は全てキャッシュしておく
  • NostrClient 内の ndk のみでなく、RobustEventFetcher で使っている tempNdk からも参照できるようにする

動作確認として、過去のTimelineを沢山読み込んだ際に、リクエスト数が増えすぎないことを確認する

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions