Skip to content

Commit 40640fe

Browse files
committed
fix linter and doc gen issues
1 parent cdefe39 commit 40640fe

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cmd/loadtest/account.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ type Account struct {
2222
privateKey *ecdsa.PrivateKey
2323
nonce uint64
2424
funded bool
25-
used bool
2625
}
2726

2827
func newAccount(client *ethclient.Client, privateKey *ecdsa.PrivateKey) (*Account, error) {

cmd/loadtest/loadtest.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ func initializeLoadTestParams(ctx context.Context, c *ethclient.Client) error {
284284

285285
inputLoadTestParams.ParsedModes = make([]loadTestMode, 0)
286286
for _, m := range modes {
287-
parsedMode, err := characterToLoadTestMode(m)
287+
var parsedMode loadTestMode
288+
parsedMode, err = characterToLoadTestMode(m)
288289
if err != nil {
289290
return err
290291
}

doc/polycli_loadtest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ The codebase has a contract that used for load testing. It's written in Solidity
104104
--adaptive-cycle-duration-seconds uint When using adaptive rate limiting, this flag controls how often we check the queue size and adjust the rates (default 10)
105105
--adaptive-rate-limit Enable AIMD-style congestion control to automatically adjust request rate
106106
--adaptive-rate-limit-increment uint When using adaptive rate limiting, this flag controls the size of the additive increases. (default 50)
107+
--address-funding-amount uint The amount in gwei to fund the sending addresses with. (default 1000000000000000000)
107108
--batch-size uint Number of batches to perform at a time for receipt fetching. Default is 999 requests at a time. (default 999)
108109
--blob-fee-cap uint The blob fee cap, or the maximum blob fee per chunk, in Gwei. (default 100000)
109110
-b, --byte-count uint If we're in store mode, this controls how many bytes we'll try to store in our contract (default 1024)
@@ -121,6 +122,7 @@ The codebase has a contract that used for load testing. It's written in Solidity
121122
-f, --function uint A specific function to be called if running with --mode f or a specific precompiled contract when running with --mode a (default 1)
122123
--function-arg strings The arguments that will be passed to a contract function call. This must be paired up with "--mode contract-call" and "--contract-address". Args can be passed multiple times: "--function-arg 'test' --function-arg 999" or comma separated values "--function-arg "test",9". The ordering of the arguments must match the ordering of the function parameters.
123124
--function-signature string The contract's function signature that will be called. The format is '<function name>(<types...>)'. This must be paired up with '--mode contract-call' and '--contract-address'. If the function requires parameters you can pass them with '--function-arg <value>'.
125+
--fund-sending-addresses-on-demand If set to true, the sending addresses will be funded when used for the first time, otherwise all addresses will be fund at the start of the execution. (default true)
124126
--gas-limit uint In environments where the gas limit can't be computed on the fly, we can specify it manually. This can also be used to avoid eth_estimateGas
125127
--gas-price uint In environments where the gas price can't be determined automatically, we can specify it manually
126128
--gas-price-multiplier float A multiplier to increase or decrease the gas price (default 1)
@@ -157,6 +159,7 @@ The codebase has a contract that used for load testing. It's written in Solidity
157159
-r, --rpc-url string The RPC endpoint url (default "http://localhost:8545")
158160
--seed int A seed for generating random values and addresses (default 123456)
159161
--send-only Send transactions and load without waiting for it to be mined.
162+
--sending-address-count uint The number of sending addresses to use. This is useful for avoiding pool account queue. (default 1)
160163
--steady-state-tx-pool-size uint When using adaptive rate limiting, this value sets the target queue size. If the queue is smaller than this value, we'll speed up. If the queue is smaller than this value, we'll back off. (default 1000)
161164
--summarize Should we produce an execution summary after the load test has finished. If you're running a large load test, this can take a long time
162165
-t, --time-limit int Maximum number of seconds to spend for benchmarking. Use this to benchmark within a fixed total amount of time. Per default there is no time limit. (default -1)

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ require (
4848
github.com/pion/stun/v2 v2.0.0 // indirect
4949
github.com/pion/transport/v2 v2.2.10 // indirect
5050
github.com/pion/transport/v3 v3.0.1 // indirect
51-
github.com/stretchr/objx v0.5.2 // indirect
5251
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
5352
)
5453

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,6 @@ github.com/spf13/viper v1.20.1/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqj
451451
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
452452
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
453453
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
454-
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
455-
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
456454
github.com/stretchr/testify v1.1.5-0.20170601210322-f6abca593680/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
457455
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
458456
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=

0 commit comments

Comments
 (0)