From c9bad120b110b87b57b1a361ec73b00112ee1524 Mon Sep 17 00:00:00 2001 From: Jillian Crossley Date: Tue, 29 Oct 2024 17:26:17 +0000 Subject: [PATCH] finagle/finagle-core: Made retainIds/lookupId private[twitter] in BroadcastContext Problem We need to use these methods in application code. Solution Make them private[finagle] -> private[twitter]. Differential Revision: https://phabricator.twitter.biz/D1179657 --- .../scala/com/twitter/finagle/context/MarshalledContext.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finagle-core/src/main/scala/com/twitter/finagle/context/MarshalledContext.scala b/finagle-core/src/main/scala/com/twitter/finagle/context/MarshalledContext.scala index f9dfa8d4cc..0bdcd5c75f 100644 --- a/finagle-core/src/main/scala/com/twitter/finagle/context/MarshalledContext.scala +++ b/finagle-core/src/main/scala/com/twitter/finagle/context/MarshalledContext.scala @@ -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. @@ -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) }