Skip to content

Commit

Permalink
Update podhelper.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nnn-gif committed Sep 4, 2023
1 parent a1c92ea commit 1f2394d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oraclebuildertools/utils/podhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (kh *PodHelper) RestartOracleFeeder(ctx context.Context, feederID string, o
} else {
return err
}
err = kh.CreateOracleFeeder(ctx, feederID, oracleconfig.Owner, oracleconfig.Address, oracleconfig.ChainID, strings.Join(oracleconfig.Symbols[:], ","), oracleconfig.BlockchainNode, oracleconfig.Frequency, oracleconfig.SleepSeconds, oracleconfig.DeviationPermille, oracleconfig.MandatoryFrequency)
err = kh.CreateOracleFeeder(ctx, feederID, oracleconfig.Owner, oracleconfig.Address, oracleconfig.ChainID, strings.Join(oracleconfig.Symbols[:], ","), oracleconfig.FeederSelection, oracleconfig.BlockchainNode, oracleconfig.Frequency, oracleconfig.SleepSeconds, oracleconfig.DeviationPermille, oracleconfig.MandatoryFrequency)
if err != nil {
log.Errorf("Pod %s start err\n", err)
return
Expand All @@ -247,7 +247,7 @@ func (kh *PodHelper) RestartOracleFeeder(ctx context.Context, feederID string, o
//}
kh.waitPodDeleted(ctx, oracleconfig.Address, func() {
time.Sleep(1000 * time.Millisecond)
err = kh.CreateOracleFeeder(ctx, feederID, oracleconfig.Owner, oracleconfig.Address, oracleconfig.ChainID, strings.Join(oracleconfig.Symbols[:], ","), oracleconfig.BlockchainNode, oracleconfig.Frequency, oracleconfig.SleepSeconds, oracleconfig.DeviationPermille, oracleconfig.MandatoryFrequency)
err = kh.CreateOracleFeeder(ctx, feederID, oracleconfig.Owner, oracleconfig.Address, oracleconfig.ChainID, strings.Join(oracleconfig.Symbols[:], ","), oracleconfig.FeederSelection, oracleconfig.BlockchainNode, oracleconfig.Frequency, oracleconfig.SleepSeconds, oracleconfig.DeviationPermille, oracleconfig.MandatoryFrequency)
if err != nil {
log.Errorf("Pod %s start err\n", err)
return
Expand Down

0 comments on commit 1f2394d

Please sign in to comment.