Skip to content

Commit

Permalink
Make the health check a singleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
codahale committed Mar 25, 2011
1 parent 12c4b48 commit 8bd5c08
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package com.yammer.example.health

import com.yammer.metrics.core.HealthCheck
import com.yammer.metrics.core.HealthCheck.Result
import com.google.inject.Inject
import com.yammer.example.data.Template
import com.google.inject.{Singleton, Inject}

@Singleton
class TemplateHealthCheck @Inject()(template: Template) extends HealthCheck {
def name = "template"

Expand Down

0 comments on commit 8bd5c08

Please sign in to comment.