Skip to content

Commit

Permalink
remove unused perf timer
Browse files Browse the repository at this point in the history
  • Loading branch information
ohaibbq committed Apr 12, 2024
1 parent 5ba6165 commit bc3e29e
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions internal/contentdata/repository.go
Expand Up @@ -5,12 +5,10 @@ import (
"database/sql"
"fmt"
"github.com/goccy/go-zetasqlite"
"reflect"
"strings"
"time"

"go.uber.org/zap"
bigqueryv2 "google.golang.org/api/bigquery/v2"
"reflect"
"strings"

"github.com/goccy/bigquery-emulator/internal/connection"
"github.com/goccy/bigquery-emulator/internal/logger"
Expand Down Expand Up @@ -78,12 +76,7 @@ func (r *Repository) routinePath(projectID, datasetID, routineID string) string
routinePath = append(routinePath, routineID)
return strings.Join(routinePath, ".")
}
func timer(name string) func() {
start := time.Now()
return func() {
fmt.Printf("%s took %v\n", name, time.Since(start))
}
}

func (r *Repository) CreateTable(ctx context.Context, tx *connection.Tx, table *bigqueryv2.Table) error {
if err := tx.ContentRepoMode(); err != nil {
return err
Expand Down

0 comments on commit bc3e29e

Please sign in to comment.