Skip to content

Commit

Permalink
fix: update based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Nov 22, 2024
1 parent 32718b9 commit 7f9850f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions node/pkg/common/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func (m *LatestFeedDataMap) GetLatestFeedData(feedIds []int32) ([]*FeedData, err
}

func (m *LatestFeedDataMap) GetLatestFeedDataFromCache(ctx context.Context, feedIds []int32) ([]*FeedData, error) {
if len(feedIds) == 0 {
return nil, nil
}

queryingKeys := make([]string, 0, len(feedIds))
for _, feedId := range feedIds {
queryingKeys = append(queryingKeys, keys.FeedData(feedId))
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/websocketfetcher/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (
const (
DefaultStoreInterval = 200 * time.Millisecond
DefaultBufferSize = 3000
warmCacheTTL = 15 * time.Second
warmCacheTTL = time.Minute
)

type AppConfig struct {
Expand Down

0 comments on commit 7f9850f

Please sign in to comment.