toxiproxy icon indicating copy to clipboard operation
toxiproxy copied to clipboard

Toxics are not set when creating a proxy for the first time.

Open jpittis opened this issue 10 years ago • 2 comments
trafficstars

When using the Go client as follows, toxics are not added to a proxy. Given var p []toxiproxy.Proxy with toxics.

proxy := client.NewProxy(&p)
proxy.Create()

This does not properly add the configured toxics from p onto the proxy.

They must be added after the fact using Proxy.SetToxic.

jpittis avatar Aug 28 '15 17:08 jpittis

yeah this is a known "issue". @xthexder I don't think this is any different in 2.0?

sirupsen avatar Aug 31 '15 00:08 sirupsen

Yeah, it's not any different currently, just a little less misleading. I think it would be reasonable to allow toxics to be specified in the Populate() function

xthexder avatar Aug 31 '15 00:08 xthexder