Skip to content

Commit 71f1893

Browse files
committed
fix(all): Update to new config not handling ErrNoSuchKey.
1 parent 5739f76 commit 71f1893

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

benchmarks/event/cmd/request/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func bench(
107107
PackageSize: defaultPackageSize,
108108
}
109109

110-
if err := config.Parse(nil, event.DefaultConfigSection, svcCtx.Config, &cfg); err != nil {
110+
if err := config.Parse(nil, event.DefaultConfigSection, svcCtx.Config, &cfg); err != nil && !errors.Is(err, config.ErrNoSuchKey) {
111111
return err
112112
}
113113

benchmarks/rps/cmd/orb-rps-client/wire.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package main
66

77
import (
88
"context"
9+
"errors"
910
"fmt"
1011
"time"
1112

@@ -80,7 +81,7 @@ func provideClientConfig(svcCtx *cli.ServiceContext) (*clientConfig, error) {
8081
ContentType: defaultContentType,
8182
}
8283

83-
if err := config.Parse(nil, configSection, svcCtx.Config, &cfg); err != nil {
84+
if err := config.Parse(nil, configSection, svcCtx.Config, &cfg); err != nil && !errors.Is(err, config.ErrNoSuchKey) {
8485
return nil, err
8586
}
8687

benchmarks/rps/cmd/orb-rps-client/wire_gen.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)