Skip to content

Commit

Permalink
send updates whenever the manifest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 13, 2024
1 parent 3917c30 commit f23b8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/f3/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ var manifestServeCmd = cli.Command{
case <-checkTicker.C:
if nextManifest, err := loadManifest(manifestPath); err != nil {
_, _ = fmt.Fprintf(c.App.ErrWriter, "Failed reload manifest: %v\n", err)
} else if nextManifest.NetworkName != currentManifest.NetworkName {
_, _ = fmt.Fprintf(c.App.Writer, "Loaded manifest: %q\n", nextManifest.NetworkName)
} else if !nextManifest.Equal(currentManifest) {
_, _ = fmt.Fprintf(c.App.Writer, "Loaded changed manifest with network name: %q\n", nextManifest.NetworkName)
sender.UpdateManifest(nextManifest)
currentManifest = nextManifest
}
Expand Down

0 comments on commit f23b8ae

Please sign in to comment.