Skip to content

chore(indexer): nits from #26116#26182

Open
amnn wants to merge 1 commit intomainfrom
amnn/idx-26116-nits
Open

chore(indexer): nits from #26116#26182
amnn wants to merge 1 commit intomainfrom
amnn/idx-26116-nits

Conversation

@amnn
Copy link
Copy Markdown
Contributor

@amnn amnn commented Apr 9, 2026

Description

Addressing some post-land nits from #26116. The main one is that we should not refer to anyhow::Result in an unguarded way, as it leads to confusion about the error type, and we should not re-export types that are accessible through other means (i.e. their module is not private to the crate), as it leads to inconsistencies when the language server tries to resolve them.

Test plan

CI


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • Indexing Framework:

## Description

Addressing some post-land nits from #26116. The main one is that we
should not refer to `anyhow::Result` in an unguarded way, as it leads to
confusion about the error type, and we should not re-export types that
are accessible through other means (i.e. their module is not private to
the crate), as it leads to inconsistencies when the language server
tries to resolve them.

## Test plan

CI
@amnn amnn self-assigned this Apr 9, 2026
@amnn amnn requested a review from a team as a code owner April 9, 2026 19:37
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sui-docs Ready Ready Preview, Comment Apr 9, 2026 7:39pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multisig-toolkit Ignored Ignored Preview Apr 9, 2026 7:39pm
sui-kiosk Ignored Ignored Preview Apr 9, 2026 7:39pm

Request Review

@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env April 9, 2026 19:37 — with GitHub Actions Inactive
evan-wall-mysten added a commit that referenced this pull request Apr 10, 2026
…26198)

## Description 

**Commit 1:**

Adds back #26096 and #26116 which were reverted in #26188. 

**Commit 2:**

Specify `timeout` along with `connect_timeout` when creating the gRPC
client.
* `connect_timeout` only bounds the TCP/TLS handshake - the low-level
socket connect. Once the TCP connection is established,
`connect_timeout` has no further effect. The `subscribe_checkpoints` RPC
is a separate HTTP/2 request sent over the already-established
connection, so it's not covered by that setting. If a server accepts
TCP, but stalls before sending response headers, the client hangs the
indefinitely.
* `timeout` is the counterpart that bounds individual RPC calls on the
channel.

**Commit 3:**

Include changes from #26182.


## Test plan 

Added new unit test to prove indexer does not hang during startup when
streaming hangs.

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] Indexing Framework:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant