@@ -3,23 +3,20 @@ package hub
33import (
44 "context"
55 "fmt"
6- "log"
7- "strings"
8- "sync"
9- "time"
10-
11- "github.com/turbot/steampipe/pkg/query/queryresult"
12-
136 "github.com/turbot/go-kit/helpers"
147 "github.com/turbot/steampipe-plugin-sdk/v5/grpc"
158 "github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
169 "github.com/turbot/steampipe-plugin-sdk/v5/telemetry"
1710 "github.com/turbot/steampipe-postgres-fdw/settings"
1811 "github.com/turbot/steampipe-postgres-fdw/types"
1912 "github.com/turbot/steampipe/pkg/constants"
13+ "github.com/turbot/steampipe/pkg/query/queryresult"
2014 "go.opentelemetry.io/otel"
2115 "go.opentelemetry.io/otel/attribute"
2216 "go.opentelemetry.io/otel/metric"
17+ "log"
18+ "strings"
19+ "sync"
2320)
2421
2522type hubBase struct {
@@ -520,20 +517,6 @@ func (h *hubBase) HandleLegacyCacheCommand(command string) error {
520517 return nil
521518}
522519
523- func (h * hubBase ) cacheTTL (connectionName string ) time.Duration {
524- log .Printf ("[INFO] cacheTTL 1" )
525- // if the cache ttl has been overridden, then enforce the value
526- if h .cacheSettings .Ttl != nil {
527- return * h .cacheSettings .Ttl
528- }
529- log .Printf ("[INFO] cacheTTL 2" )
530-
531- const defaultTtl = 300 * time .Second
532-
533- log .Printf ("[INFO] default cacheTTL %v" , defaultTtl )
534- return defaultTtl
535- }
536-
537520// GetSortableFields
538521func (h * hubBase ) GetSortableFields (tableName , connectionName string ) map [string ]proto.SortOrder {
539522 return nil
0 commit comments