Created
October 6, 2012 12:04
-
-
Save d6y/3844746 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val sns: Option[SNS] = // configure SNS | |
| implicit def pimpActor(actor: LiftActor) = new { | |
| def >(implicit s: SNSSerializer[T]) = sns match { | |
| case Some(service) => service ! Publish(s.write(msg)) | |
| case _ => actor ! msg | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment