Closed froodian closed 7 years ago
I solved this by just keeping a ClientManager full of production clients and a ClientManager full of development clients, I feel like that's a fine solution and removes the ambiguity if another thread is sending on the client when you try to switch gateways, so I feel like that's a good answer to this, closing. Sorry about the noise.
client.Production()
/client.Development()
on clients return from ClientManager.Getclient.Production()
and apns2/client.go:156 (url := fmt.Sprintf("%v/3/device/%v", c.Host, n.DeviceToken)
)