Skip to content

Conversation

@JamieSinn
Copy link
Member

No description provided.

sourcery-ai[bot]

This comment was marked as off-topic.

@JamieSinn JamieSinn enabled auto-merge (squash) June 11, 2024 20:14
| DVC_LB_PROXY_SDKCONFIG_EVENTSAPIURI | String | | | The URI of the Events API - leave unspecified if not needing an outbound proxy. |
| KEY | TYPE | DEFAULT | REQUIRED | DESCRIPTION |
|----------------------------------------------------------|---------------|---------|----------|---------------------------------------------------------------------------------|
| DEVCYCLE_PROXY_CONFIG | String | | | The path to a JSON configuration file. |
Copy link
Member

@jonathannorris jonathannorris Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we need to do a major version increase for these name changes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

func Variable(client *devcycle.Client) gin.HandlerFunc {
func Variable() gin.HandlerFunc {
return func(c *gin.Context) {
client := c.Value("devcycle").(*devcycle.Client)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh, interesting so the devcycle client is now attached to the request context?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - I wanted to make it more context friendly and properly scoped to each request since it's handled by a different gin instance

@JamieSinn JamieSinn merged commit 9dd078b into main Jun 12, 2024
@JamieSinn JamieSinn deleted the jamie/sse branch June 12, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants