From e1a5f28715680a0911387674e907d765e5afe419 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 6 Sep 2022 16:53:51 -0400 Subject: [PATCH] fix lint --- test/loadtime/cmd/load/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/loadtime/cmd/load/main.go b/test/loadtime/cmd/load/main.go index c74b6ff21..7eceaea7d 100644 --- a/test/loadtime/cmd/load/main.go +++ b/test/loadtime/cmd/load/main.go @@ -16,7 +16,7 @@ var ( // ClientFactory implements the loadtest.ClientFactory interface. type ClientFactory struct { - Id []byte + ID []byte } // TxGenerator is responsible for generating transactions. @@ -31,7 +31,7 @@ type TxGenerator struct { func main() { u := [16]byte(uuid.New()) // generate run ID on startup - if err := loadtest.RegisterClientFactory("loadtime-client", &ClientFactory{Id: u[:]}); err != nil { + if err := loadtest.RegisterClientFactory("loadtime-client", &ClientFactory{ID: u[:]}); err != nil { panic(err) } loadtest.Run(&loadtest.CLIConfig{ @@ -55,7 +55,7 @@ func (f *ClientFactory) ValidateConfig(cfg loadtest.Config) error { func (f *ClientFactory) NewClient(cfg loadtest.Config) (loadtest.Client, error) { return &TxGenerator{ - id: f.Id, + id: f.ID, conns: uint64(cfg.Connections), rate: uint64(cfg.Rate), size: uint64(cfg.Size),