Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reuse mechanism for OpenSergoClient. #34

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mayooot
Copy link

@mayooot mayooot commented Mar 27, 2024

Describe what this PR does / why we need it

Add reuse mechanism for OpenSergoClient.

Does this pull request fix one issue?

Fixes #31

Describe how you did it

I use a map with host:port as key and openSergoClient as value to control reuse, and use sync.map to avoid concurrent access problems.

Describe how to verify it

He looks like NewOpenSergoClient, I added a StartAndSubscribeOpenSergoConfigFromPool function in samples/main/main.go.

Special notes for reviews

nothing.

@CLAassistant
Copy link

CLAassistant commented Mar 27, 2024

CLA assistant check
All committers have signed the CLA.

@mayooot mayooot changed the title Pref/reuse opensergoclient Add reuse mechanism for OpenSergoClient. Mar 27, 2024
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.

Add reuse mechanism for OpenSergoClient
2 participants