the-algorithm/tweetypie/server/src/main/scala/com/twitter/tweetypie/store/package.scala
twitter-team 01dbfee4c0 Open-sourcing Tweetypie
Tweetypie is the core Tweet service that handles the reading and writing of Tweet data.
2023-05-19 16:20:06 -05:00

17 lines
517 B
Scala

package com.twitter.tweetypie
import com.fasterxml.jackson.core.JsonGenerator
import com.twitter.tweetypie.thriftscala.CachedTweet
import com.twitter.context.TwitterContext
package object store {
type JsonGen = JsonGenerator => Unit
// Bring Tweetypie permitted TwitterContext into scope
val TwitterContext: TwitterContext =
com.twitter.context.TwitterContext(com.twitter.tweetypie.TwitterContextPermit)
def cachedTweetFromUnhydratedTweet(tweet: Tweet): CachedTweet =
CachedTweet(tweet = tweet)
}