Skip to content

Commit

Permalink
[chore] use updated confignet functions (open-telemetry#30745)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth authored and cparkins committed Feb 1, 2024
1 parent e41d2e8 commit 8816a8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension/pprofextension/pprofextension.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (p *pprofExtension) Start(_ context.Context, _ component.Host) error {
// Start the listener here so we can have earlier failure if port is
// already in use.
var ln net.Listener
ln, startErr = p.config.TCPAddr.ListenContext(context.Background())
ln, startErr = p.config.TCPAddr.Listen(context.Background())
if startErr != nil {
return startErr
}
Expand Down
2 changes: 1 addition & 1 deletion receiver/zookeeperreceiver/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (z *zookeeperMetricsScraper) scrape(ctx context.Context) (pmetric.Metrics,
}

func (z *zookeeperMetricsScraper) runCommand(ctx context.Context, command string) ([]string, error) {
conn, err := z.config.DialContext(context.Background())
conn, err := z.config.Dial(context.Background())

if err != nil {
z.logger.Error("failed to establish connection",
Expand Down

0 comments on commit 8816a8d

Please sign in to comment.