Skip to content

Commit

Permalink
DO NOT MERGE - Panic if no metric name is set
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Jun 13, 2018
1 parent 831e53a commit 279f150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ type Server struct {

// NewServer creates a server.
func NewServer(config *server.Config, services ServiceAccessor, endpoints EndpointsAccessor, metricsName string) *Server {
if len(metricsName) == 0 {
panic("no metrics name set")
}
return &Server{
Config: config,
Services: services,
Expand Down

0 comments on commit 279f150

Please sign in to comment.