Skip to content

Conversation

@pberganza-applaudostudios
Copy link
Contributor

This pull request will make it able to use a configurable number of threads (via the thread parameter on the Client init). Tests have been updated to take into account the multiple consumers created.

Client no longer has a consumer property. It has been replaced by consumers.

It may be used as

from analytics import Client
client = Client('WRITE_KEY', thread=3)

@pberganza-applaudostudios pberganza-applaudostudios force-pushed the feature/configurable-concurrency branch from ab0b3ac to d81f651 Compare December 13, 2019 23:26
@lubird lubird merged commit 2a314e6 into segmentio:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants