Skip to content

Commit

Permalink
Improve readme readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Edson Hilios committed Jul 26, 2017
1 parent a8cda0c commit 8ede11c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ import models.MyCustomType
import scala.concurrent.{ExecutionContext, Future}

@Singleton
class MyConsumer @Inject()(implicit val ec: ExecutionContext, val sqs: SqsClient) extends SqsConsumer[MyCustomType] {
class MyConsumer @Inject()(implicit val ec: ExecutionContext, val sqs: SqsClient)
extends SqsConsumer[MyCustomType] {

def queue = "key-of-my-queue"

def consume(message: MyCustomType) = ???
Expand All @@ -76,8 +78,10 @@ import models.MyCustomType
import scala.concurrent.{ExecutionContext, Future}

@Singleton
class MyProducer @Inject()(implicit val ec: ExecutionContext, val sqs: SqsClient) extends SqsProducer[MyCustomType] {
def name = "key-of-my-queue"
class MyProducer @Inject()(implicit val ec: ExecutionContext, val sqs: SqsClient)
extends SqsProducer[MyCustomType] {

def queue = "key-of-my-queue"
}
```

Expand Down Expand Up @@ -150,7 +154,7 @@ $ sbt "+ package"

## License

`common-sqs` is open source software released under the Apache 2.0 License.
`common-sqs` is open source software released under the Apache 2.0 License by **99Taxis**.

See the [LICENSE](https://github.com/99Taxis/common-sqs/blob/master/LICENSE) file for details.

0 comments on commit 8ede11c

Please sign in to comment.