refactor: remove unused RetryWithSequence method
Some checks failed
Go Tests / Run Tests (1.24.2) (push) Has been cancelled

This commit is contained in:
Jeremy Tregunna 2025-05-02 23:18:04 -06:00
parent 2335e9a10a
commit c70eb8d138
Signed by: jer
GPG Key ID: 1278B36BA6F5D5E4

View File

@ -29,20 +29,6 @@ func (m *Manager) RetryOnWALRotating(operation func() error) error {
return m.RetryWithConfig(operation, config, isWALRotating)
}
// RetryWithSequence retries the operation if it fails with ErrWALRotating
// and returns the sequence number
func (m *Manager) RetryWithSequence(operation func() (uint64, error)) (uint64, error) {
config := DefaultRetryConfig()
var seq uint64
err := m.RetryWithConfig(func() error {
var opErr error
seq, opErr = operation()
return opErr
}, config, isWALRotating)
return seq, err
}
// RetryWithConfig retries an operation with the given configuration
func (m *Manager) RetryWithConfig(operation func() error, config *RetryConfig, isRetryable func(error) bool) error {