Skip to content

Fix server services option fallback - #239

Open
ydah wants to merge 1 commit into
bigcommerce:mainfrom
ydah:fix/server-services-option
Open

Fix server services option fallback#239
ydah wants to merge 1 commit into
bigcommerce:mainfrom
ydah:fix/server-services-option

Conversation

@ydah

@ydah ydah commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What? Why?

Gruf::Server#services uses Gruf.services || ... to select services.

Because the default value of Gruf.services is an empty array, and empty arrays are truthy in Ruby, services passed through Server.new(services: [...]) are silently ignored when no global services are configured.

How was it tested?

  • Added regression specs for Gruf::Server#services.

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.

1 participant