Skip to content

Commit

Permalink
fix: XK6 Pitaya TLS configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
reinaldooli committed Aug 1, 2024
1 parent 0146ced commit 7eef3e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xk6-pitaya/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (mi *ModuleInstance) NewClient(call goja.ConstructorCall) *goja.Object {
pushes: make(map[string]chan []byte, 100),
timeout: time.Duration(opts.RequestTimeoutMs) * time.Millisecond,
metrics: mi.metrics,
useTLS: opts.UseTLS,
}

client.client = pitayaclient.New(logrus.InfoLevel)
Expand All @@ -96,6 +97,7 @@ func (mi *ModuleInstance) NewClient(call goja.ConstructorCall) *goja.Object {
type options struct {
HandshakeData *session.HandshakeData `json:"handshakeData"`
RequestTimeoutMs int `json:"requestTimeoutMs"`
UseTLS bool `json:"useTLS"`
}

// newOptionsFrom validates and instantiates an options struct from its map representation
Expand Down

0 comments on commit 7eef3e6

Please sign in to comment.