Add example dc filter

This commit is contained in:
Asim
2015-12-09 15:06:31 +00:00
parent a2c862dd21
commit 066c169845
2 changed files with 88 additions and 0 deletions

View File

@@ -31,9 +31,13 @@ func main() {
// optionally setup command line usage
cmd.Init()
md := server.Config().Metadata()
md["datacenter"] = "local"
server.DefaultServer = server.NewServer(
server.WrapHandler(logWrapper),
server.WrapSubscriber(logSubWrapper),
server.Metadata(md),
)
// Initialise Server