Return MergedList<T> from list_all_* and drop the _with_cache_hint variants

Aberta
#1,430 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 3 dias

@DaleSeo já está trabalhando nisso.

Desde 3/11/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

enhancement P3 ready for work T-service v4

#1429 (for #1411) adds Peer::list_all_*_with_cache_hint() methods next to the existing list_all_* methods. They return a MergedList<T> { items, ttl_ms, cache_scope } so callers can cache a merged list. The new methods sit beside the old ones only because changing the return type of list_all_* is a breaking change.

In the next major release, list_all_* could return MergedList<T> directly, and the five _with_cache_hint methods would be removed. That leaves one method per list kind instead of two. Callers that only need the items would write .items.

This is a breaking change, so it should ship with the other changes in the next major release rather than in a major release of its own.

Linguagem predominante
Rust
Estrelas
4.1k
Forks
694
Merge médio
4d 16h
PRs com merge (30d)
43

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de modelcontextprotocol/rust-sdk

Todas as issues de modelcontextprotocol/rust-sdk

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.