mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
ef4c5eb65e
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.
17 lines
637 B
Scala
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))
|
|
}
|