From 3604d9889189b09cfa507f0fbf80b1d19e49597e Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 7 Mar 2023 15:04:52 -0600 Subject: [PATCH] camelCase --- statediff/indexer/database/sql/lazy_tx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statediff/indexer/database/sql/lazy_tx.go b/statediff/indexer/database/sql/lazy_tx.go index 3e4fe4c5c..ad7a22857 100644 --- a/statediff/indexer/database/sql/lazy_tx.go +++ b/statediff/indexer/database/sql/lazy_tx.go @@ -8,7 +8,7 @@ import ( ) // Changing this to 1 would make sure only sequential COPYs were combined. -const COPY_FROM_CHECK_LIMIT = 100 +const copyFromCheckLimit = 100 type DelayedTx struct { cache []interface{} @@ -52,7 +52,7 @@ func (tx *DelayedTx) findPrevCopyFrom(tableName []string, columnNames []string, } func (tx *DelayedTx) CopyFrom(ctx context.Context, tableName []string, columnNames []string, rows [][]interface{}) (int64, error) { - if prevCopy := tx.findPrevCopyFrom(tableName, columnNames, COPY_FROM_CHECK_LIMIT); nil != prevCopy { + if prevCopy := tx.findPrevCopyFrom(tableName, columnNames, copyFromCheckLimit); nil != prevCopy { log.Trace("statediff lazy_tx : Appending rows to COPY", "table", tableName, "current", len(prevCopy.rows), "append", len(rows)) prevCopy.appendRows(rows)