Skip to content

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