aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/flatrpc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-24 11:32:41 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-24 14:39:45 +0000
commit1f032c27c8158e44723253179928104813d45cdc (patch)
tree80845c1da6b2c62ccec9118ab68f5d75766f8485 /pkg/flatrpc
parentbea049d0b7d151ad71617c10191fbd954decb300 (diff)
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).
Diffstat (limited to 'pkg/flatrpc')
-rw-r--r--pkg/flatrpc/conn.go4
1 files changed, 2 insertions, 2 deletions
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)
)