storj/examples/metric-sender/main.go

24 lines
439 B
Go
Raw Normal View History

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
package main
import (
"context"
"flag"
"github.com/spf13/cobra"
"storj.io/storj/pkg/process"
)
func main() {
flag.Set("metrics.interval", "1s")
process.Must(process.Main(process.ServiceFunc(run)))
}
func run(ctx context.Context, _ *cobra.Command, _ []string) error {
// just go to sleep and let the background telemetry start sending
select {}
}