Skip to content

Conversation

miparnisari
Copy link
Contributor

No description provided.

}),
server.WithHTTPGateway(util.HTTPServerConfig{HTTPEnabled: false}),
server.WithMetricsAPI(util.HTTPServerConfig{HTTPEnabled: true}),
server.WithMetricsAPI(util.HTTPServerConfig{HTTPEnabled: false}),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It took me ages to figure out that if this is true but the port is already being used, the server stops suddenly! (Feels like a bug in SpiceDB)

Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't a bug - it's a port where you are exposing a service that is used, the binary should terminate with an error. Imagine you had a collision on the gRPC port, but happily continued to make the service healthy 🙈

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, but we could not serve any requests until the metrics server comes up 🤔

@miparnisari miparnisari marked this pull request as ready for review June 25, 2025 05:05
Copy link
Contributor

@vroldanbet vroldanbet left a comment

Choose a reason for hiding this comment

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

lgtm

@vroldanbet vroldanbet merged commit ad092b9 into main Jun 25, 2025
6 checks passed
@vroldanbet vroldanbet deleted the update-example-spicedb-as-libr branch June 25, 2025 09:56
@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants