The GitHub Actions job "Scalafmt" on 
pekko-grpc.git/optimize/fast-negotiation-uri-match has succeeded.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
75444a2c326ab1b84b44c498a1897908970ae3c8 / 虎鸣 <[email protected]>
fix: use value equality for gRPC content-type string comparison

Motivation:
`eq` is reference equality in Scala — it only returns true when both
operands are the exact same object. `mediaType.subType` is not
guaranteed to return interned strings, so `eq` can silently return
false for semantically equal values like "grpc+proto".

Modification:
Replace `eq` with `==` (value equality) in the `negotiate` fast path.

Result:
Content-type negotiation works correctly regardless of string interning.

Report URL: https://github.com/apache/pekko-grpc/actions/runs/28042847410

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to