mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 22:05:18 +00:00
A workaround for #6729. Add parameters to control buffer sizes for event subscription RPC clients. On some networks, buffering causes clients to be dropped and/or events to be lost. For additional context, see the discussion on #7188. - Add experimental_subscription_buffer_size config parameter - Add experimental_websocket_write_buffer_size config parameter - Add experimental_close_on_slow_client config parameter Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
38 lines
733 B
Go
38 lines
733 B
Go
// Code generated by mockery v1.1.1. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
abcicli "github.com/tendermint/tendermint/abci/client"
|
|
)
|
|
|
|
// ClientCreator is an autogenerated mock type for the ClientCreator type
|
|
type ClientCreator struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// NewABCIClient provides a mock function with given fields:
|
|
func (_m *ClientCreator) NewABCIClient() (abcicli.Client, error) {
|
|
ret := _m.Called()
|
|
|
|
var r0 abcicli.Client
|
|
if rf, ok := ret.Get(0).(func() abcicli.Client); ok {
|
|
r0 = rf()
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(abcicli.Client)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func() error); ok {
|
|
r1 = rf()
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|