@@ -3,23 +3,20 @@ package hub
3
3
import (
4
4
"context"
5
5
"fmt"
6
- "log"
7
- "strings"
8
- "sync"
9
- "time"
10
-
11
- "github.com/turbot/steampipe/pkg/query/queryresult"
12
-
13
6
"github.com/turbot/go-kit/helpers"
14
7
"github.com/turbot/steampipe-plugin-sdk/v5/grpc"
15
8
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
16
9
"github.com/turbot/steampipe-plugin-sdk/v5/telemetry"
17
10
"github.com/turbot/steampipe-postgres-fdw/settings"
18
11
"github.com/turbot/steampipe-postgres-fdw/types"
19
12
"github.com/turbot/steampipe/pkg/constants"
13
+ "github.com/turbot/steampipe/pkg/query/queryresult"
20
14
"go.opentelemetry.io/otel"
21
15
"go.opentelemetry.io/otel/attribute"
22
16
"go.opentelemetry.io/otel/metric"
17
+ "log"
18
+ "strings"
19
+ "sync"
23
20
)
24
21
25
22
type hubBase struct {
@@ -520,20 +517,6 @@ func (h *hubBase) HandleLegacyCacheCommand(command string) error {
520
517
return nil
521
518
}
522
519
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
-
537
520
// GetSortableFields
538
521
func (h * hubBase ) GetSortableFields (tableName , connectionName string ) map [string ]proto.SortOrder {
539
522
return nil
0 commit comments