From 1f032c27c8158e44723253179928104813d45cdc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 24 Jul 2024 11:32:41 +0200 Subject: pkg/stats: rename Create to New New is more idiomatic name and is shorter (lines where stats.Create is used are usually long, so making them a bit shorter is good). --- pkg/flatrpc/conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/flatrpc') diff --git a/pkg/flatrpc/conn.go b/pkg/flatrpc/conn.go index f3a997e1c..0658522a0 100644 --- a/pkg/flatrpc/conn.go +++ b/pkg/flatrpc/conn.go @@ -19,9 +19,9 @@ import ( ) var ( - statSent = stats.Create("rpc sent", "Outbound RPC traffic", + statSent = stats.New("rpc sent", "Outbound RPC traffic", stats.Graph("traffic"), stats.Rate{}, stats.FormatMB) - statRecv = stats.Create("rpc recv", "Inbound RPC traffic", + statRecv = stats.New("rpc recv", "Inbound RPC traffic", stats.Graph("traffic"), stats.Rate{}, stats.FormatMB) ) -- cgit mrf-deployment