Skip to content

Commit

Permalink
added log msg
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Sep 9, 2024
1 parent fb8467a commit eb4aa2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/slo/native/query/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ func main() {
ctx, cancel = context.WithTimeout(ctx, time.Duration(cfg.Time)*time.Second)
defer cancel()

go func() {
<-ctx.Done()
log.Println("exiting...")
}()

s, err := NewStorage(ctx, cfg, cfg.ReadRPS+cfg.WriteRPS, label)
if err != nil {
panic(fmt.Errorf("create storage failed: %w", err))
Expand Down

0 comments on commit eb4aa2d

Please sign in to comment.