~sircmpwn/chartsrv-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Error out instead of crashing when server isn't specified

Details
Message ID
<20200924182343.9291-1-noam@pixelhero.dev>
DKIM signature
fail
Download raw message
Patch: +4 -0 DKIM signature: fail
---
 main.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/main.go b/main.go
index e15d079..887ae50 100644
--- a/main.go
+++ b/main.go
@@ -128,6 +128,10 @@ func metricName(metric map[string]string) string {
func main() {
	plotutil.DefaultDashes = [][]vg.Length{{}}

	if len(os.Args) < 2 {
		fmt.Printf("Usage: %s server\n", os.Args[0])
		os.Exit(1)
	}
	upstream = os.Args[1]
	router := chi.NewRouter()
	router.Use(middleware.RealIP)
-- 
2.28.0
Details
Message ID
<C6558N8251AT.3M5A6ZL7IP65T@homura>
In-Reply-To
<20200924182343.9291-1-noam@pixelhero.dev> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/chartsrv
   e0436f2..d5eacb2  master -> master
Reply to thread Export thread (mbox)