Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Feb 27, 2025
1 parent c083f09 commit cd97d98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion f3-sidecar/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func NewContractManifestProvider(initialValue *manifest.Manifest, contract_manif
f3Api: f3Api,
ch: make(chan *manifest.Manifest),
}
p.Update(p.initialManifest)
return &p, nil
}

Expand All @@ -51,6 +50,10 @@ func (p *ContractManifestProvider) Start(ctx context.Context) error {
p.started = &started
go func() {
for started && ctx.Err() == nil {
if p.currentManifest == nil && p.initialManifest != nil {
p.Update(p.initialManifest)
p.initialManifest = nil
}
logger.Debugf("Polling manifest from contract...\n")
m, err := p.f3Api.GetManifestFromContract(ctx)
if err == nil {
Expand Down

0 comments on commit cd97d98

Please sign in to comment.