the-algorithm/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/configapi/ConfigBuilder.scala
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

17 lines
637 B
Scala

package com.twitter.follow_recommendations.configapi
import com.twitter.timelines.configapi.CompositeConfig
import com.twitter.timelines.configapi.Config
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class ConfigBuilder @Inject() (
deciderConfigs: DeciderConfigs,
featureSwitchConfigs: FeatureSwitchConfigs) {
// The order of configs added to `CompositeConfig` is important. The config will be matched with
// the first possible rule. So, current setup will give priority to Deciders instead of FS
def build(): Config =
new CompositeConfig(Seq(deciderConfigs.config, featureSwitchConfigs.config))
}