Skip to content

Commit

Permalink
fix: Keep source/binary compatibility with 2.5.1 for addRequestHeader (
Browse files Browse the repository at this point in the history
johanandren authored Jan 31, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 33ce3b5 commit 0034695
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -16,7 +16,10 @@ trait AkkaGrpcClient {
/**
* @return The same client decorated to add the given key and value to the metadata of any request issued.
*/
def addRequestHeader(key: String, value: String): AkkaGrpcClient
def addRequestHeader(key: String, value: String): AkkaGrpcClient = {
// dummy implementation to not break compatibility
this
}

/**
* Initiates a shutdown in which preexisting and new calls are cancelled.
Original file line number Diff line number Diff line change
@@ -33,5 +33,8 @@ trait AkkaGrpcClient {
/**
* The same client instance decorated to add the given key and value to the metadata of any request issued.
*/
def addRequestHeader(key: String, value: String): AkkaGrpcClient
def addRequestHeader(key: String, value: String): AkkaGrpcClient = {
// dummy implementation to not break compatibility
this
}
}

0 comments on commit 0034695

Please sign in to comment.