Skip to content

Commit

Permalink
fix: add missing latestFeedDataMap declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 13, 2024
1 parent 8a5c8b5 commit 8b54e9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/pkg/websocketfetcher/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"os"
"sync"
"time"

"bisonai.com/orakl/node/pkg/chain/websocketchainreader"
Expand Down Expand Up @@ -144,13 +145,16 @@ func (a *App) Init(ctx context.Context, opts ...AppOption) error {
StoreInterval: DefaultStoreInterval,
LatestFeedDataMap: &types.LatestFeedDataMap{
FeedDataMap: make(map[int32]*types.FeedData),
Mu: sync.RWMutex{},
},
}

for _, opt := range opts {
opt(appConfig)
}

a.latestFeedDataMap = appConfig.LatestFeedDataMap

if err := a.initializeCex(ctx, *appConfig); err != nil {
return err
}
Expand Down

0 comments on commit 8b54e9f

Please sign in to comment.