Skip to content

Commit

Permalink
rename tb var
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed Dec 19, 2024
1 parent 912a63d commit 0ecebb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grpc/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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{
Expand All @@ -119,7 +119,7 @@ func NewApp() *App {
}

app := &App{
TB: tigerbeetle_go,
TB: tb,
TBuf: tbuf,
TBufs: tbufs,
}
Expand Down

0 comments on commit 0ecebb2

Please sign in to comment.