From 0ecebb27a1d9a345d10cacf8ecd9b4a886a07578 Mon Sep 17 00:00:00 2001 From: "Lucian I. Last" Date: Thu, 19 Dec 2024 15:25:35 +0100 Subject: [PATCH] rename tb var --- grpc/routes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grpc/routes.go b/grpc/routes.go index 2a522fd..e63e20d 100644 --- a/grpc/routes.go +++ b/grpc/routes.go @@ -59,7 +59,7 @@ func (a *App) Close() { const TB_MAX_BATCH_SIZE = 8190 func NewApp() *App { - tigerbeetle_go, err := tigerbeetle_go.NewClient(types.Uint128{uint8(config.Config.TbClusterID)}, config.Config.TbAddresses) + tb, err := tigerbeetle_go.NewClient(types.Uint128{uint8(config.Config.TbClusterID)}, config.Config.TbAddresses) if err != nil { slog.Error("unable to connect to tigerbeetle", "err", err) os.Exit(1) @@ -101,7 +101,7 @@ func NewApp() *App { } metrics.TotalCreateTransferTx.Add(float64(len(transfers))) metrics.TotalTbCreateTransfersCall.Inc() - results, err := tigerbeetle_go.CreateTransfers(transfers) + results, err := tb.CreateTransfers(transfers) replies := ResultsToReply(results, transfers, err) metrics.TotalCreateTransferTxErr.Add(float64(len(replies))) res := TimedPayloadResponse{ @@ -119,7 +119,7 @@ func NewApp() *App { } app := &App{ - TB: tigerbeetle_go, + TB: tb, TBuf: tbuf, TBufs: tbufs, }