Skip to content

Commit

Permalink
loadit namespace support (#4282)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Porter <[email protected]>
  • Loading branch information
portertech authored May 7, 2021
1 parent b677006 commit af05b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/loadit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
var (
flagCount = flag.Int("count", 1000, "number of concurrent simulated agents")
flagBackends = flag.String("backends", "ws://localhost:8081", "comma separated list of backend URLs")
flagNamespace = flag.String("namespace", agent.DefaultNamespace, "namespace to use for agents")
flagSubscriptions = flag.String("subscriptions", "default", "comma separated list of subscriptions")
flagKeepaliveInterval = flag.Int("keepalive-interval", agent.DefaultKeepaliveInterval, "Keepalive interval")
flagKeepaliveTimeout = flag.Int("keepalive-timeout", types.DefaultKeepaliveTimeout, "Keepalive timeout")
Expand Down Expand Up @@ -64,7 +65,7 @@ func main() {
}
cfg.KeepaliveInterval = uint32(*flagKeepaliveInterval)
cfg.KeepaliveWarningTimeout = uint32(*flagKeepaliveTimeout)
cfg.Namespace = agent.DefaultNamespace
cfg.Namespace = *flagNamespace
cfg.Password = agent.DefaultPassword
cfg.Socket.Host = agent.DefaultAPIHost
cfg.Socket.Port = agent.DefaultAPIPort
Expand Down

0 comments on commit af05b90

Please sign in to comment.