Skip to content

Commit

Permalink
feature/tracing-credentials: removing ErrIncluded to match core
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Nov 15, 2023
1 parent 41b7296 commit 0fd90d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions pkg/config/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ func (e ErrEmpty) Error() string {
return fmt.Sprintf("%s: empty: %s", e.Name, e.Msg)
}

type ErrIncluded struct {
Name string
Msg string
}

func (e ErrIncluded) Error() string {
return fmt.Sprintf("%s: included: %s", e.Name, e.Msg)
}

type KeyNotFoundError struct {
ID string
KeyType string
Expand Down
3 changes: 0 additions & 3 deletions pkg/loop/telem.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"net"
"os"
"runtime/debug"
"time"

grpcprom "github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus"
"github.com/prometheus/client_golang/prometheus"
Expand Down Expand Up @@ -64,8 +63,6 @@ func SetupTracing(config TracingConfig) (err error) {
}

ctx := context.Background()
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()

var creds credentials.TransportCredentials
if config.TLSCertPath != "" {
Expand Down

0 comments on commit 0fd90d6

Please sign in to comment.