Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultTimeout is default duration the service will wait on startup to // make a connection to either the L1 or L2 backends. DefaultTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func L1EthClientWithTimeout ¶
func L1EthClientWithTimeout(ctx context.Context, url string, disableHTTP2 bool) ( *ethclient.Client, error)
L1EthClientWithTimeout attempts to dial the L1 provider using the provided URL. If the dial doesn't complete within DefaultTimeout seconds, this method will return an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.