the-algorithm/representation-manager/server/src/main/scala/com/twitter/representation_manager/modules/StoreModule.scala
twitter-team 43cdcf2ed6 Open-sourcing Representation Manager
Representation Manager (RMS) serves as a centralized embedding management system, providing SimClusters or other embeddings as facade of the underlying storage or services.
2023-04-28 14:17:58 -05:00

25 lines
779 B
Scala

package com.twitter.representation_manager.modules
import com.google.inject.Provides
import javax.inject.Singleton
import com.twitter.inject.TwitterModule
import com.twitter.decider.Decider
import com.twitter.finagle.mtls.authentication.ServiceIdentifier
import com.twitter.representation_manager.common.RepresentationManagerDecider
import com.twitter.storage.client.manhattan.kv.ManhattanKVClientMtlsParams
object StoreModule extends TwitterModule {
@Singleton
@Provides
def providesMhMtlsParams(
serviceIdentifier: ServiceIdentifier
): ManhattanKVClientMtlsParams = ManhattanKVClientMtlsParams(serviceIdentifier)
@Singleton
@Provides
def providesRmsDecider(
decider: Decider
): RepresentationManagerDecider = RepresentationManagerDecider(decider)
}