Skip to content

Commit

Permalink
finagle/finagle-core: Made retainIds/lookupId private[twitter] in Bro…
Browse files Browse the repository at this point in the history
…adcastContext

Problem

We need to use these methods in application code.

Solution

Make them private[finagle] -> private[twitter].

Differential Revision: https://phabricator.twitter.biz/D1179657
  • Loading branch information
jcrossley authored and jenkins committed Oct 29, 2024
1 parent 8b2553c commit c9bad12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ final class MarshalledContext private[context] extends Context {
/**
* The identifier used to lookup the key in the stored context.
*/
private[finagle] final val lookupId: String = normalizeId(id)
private[twitter] final val lookupId: String = normalizeId(id)

/**
* Marshal an A-typed value into a Buf.
Expand Down Expand Up @@ -127,7 +127,7 @@ final class MarshalledContext private[context] extends Context {
letLocal(next)(fn)
}

private[finagle] def retainIds[R](ids: Set[String])(fn: => R): R = {
private[twitter] def retainIds[R](ids: Set[String])(fn: => R): R = {
val next = env.filter { case (id, _) => ids.contains(id) }
letLocal(next)(fn)
}
Expand Down

0 comments on commit c9bad12

Please sign in to comment.