Skip to content

Commit

Permalink
Make RPC client try more (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
cthulhu-rider authored Nov 2, 2024
2 parents 05d3c3f + 5ec3d5a commit ed2a5e0
Show file tree
Hide file tree
Showing 10 changed files with 339 additions and 457 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ attribute, which is used for container domain name in NNS contracts (#2954)
- Structure table in the SN-configuration document (#2974)
- False negative connection to NeoFS chain in multi-endpoint setup with at least one live node (#2986)
- Overriding the default container and object attributes only with the appropriate flags (#2985)
- RPC client reconnection failures leading to complete SN failure (#2797)

### Changed
- `ObjectService`'s `Put` RPC handler caches up to 10K lists of per-object sorted container nodes (#2901)
Expand Down
3 changes: 0 additions & 3 deletions cmd/neofs-node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,6 @@ func initBasics(c *cfg, key *keys.PrivateKey, stateStorage *state.PersistentStor
c.internalErr <- fmt.Errorf("restarting after morph connection was lost: %w", err)
}
}),
client.WithConnLostCallback(func() {
c.internalErr <- errors.New("morph connection has been lost")
}),
client.WithMinRequiredBlockHeight(fromSideChainBlock),
)
if err != nil {
Expand Down
3 changes: 0 additions & 3 deletions pkg/innerring/innerring.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,9 +1077,6 @@ func (s *Server) createClient(ctx context.Context, p chainParams, errChan chan<-
errChan <- fmt.Errorf("internal services' restart after RPC reconnection to the %s: %w", p.name, err)
}
}),
client.WithConnLostCallback(func() {
errChan <- fmt.Errorf("%s chain connection has been lost", p.name)
}),
client.WithMinRequiredBlockHeight(p.from),
}
if p.withAutoSidechainScope {
Expand Down
Loading

0 comments on commit ed2a5e0

Please sign in to comment.