Skip to content

Commit

Permalink
Conform precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
XSAM committed Dec 30, 2020
1 parent 2fd65e0 commit 9a5f5e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions instrumentation/database/sql/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (

var (
_ driver.Pinger = (*otConn)(nil)
_ driver.Execer = (*otConn)(nil)
_ driver.Execer = (*otConn)(nil) // nolint
_ driver.ExecerContext = (*otConn)(nil)
_ driver.Queryer = (*otConn)(nil)
_ driver.Queryer = (*otConn)(nil) // nolint
_ driver.QueryerContext = (*otConn)(nil)
_ driver.Conn = (*otConn)(nil)
_ driver.ConnPrepareContext = (*otConn)(nil)
Expand Down Expand Up @@ -74,7 +74,7 @@ func (c *otConn) Ping(ctx context.Context) (err error) {
}

func (c *otConn) Exec(query string, args []driver.Value) (driver.Result, error) {
execer, ok := c.Conn.(driver.Execer)
execer, ok := c.Conn.(driver.Execer) // nolint
if !ok {
return nil, driver.ErrSkip
}
Expand Down Expand Up @@ -106,7 +106,7 @@ func (c *otConn) ExecContext(ctx context.Context, query string, args []driver.Na
}

func (c *otConn) Query(query string, args []driver.Value) (driver.Rows, error) {
queryer, ok := c.Conn.(driver.Queryer)
queryer, ok := c.Conn.(driver.Queryer) // nolint
if !ok {
return nil, driver.ErrSkip
}
Expand Down
1 change: 1 addition & 0 deletions instrumentation/database/sql/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"time"

_ "github.com/go-sql-driver/mysql"

"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/exporters/stdout"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
Expand Down

0 comments on commit 9a5f5e0

Please sign in to comment.