INNER CODE UNIT · Go

main

LerianStudio/midaz · components/ledger/cmd/backfill/main.go:32

func main() {
	buildinfo.Set(buildinfo.Build{Version: version, Revision: revision, BuildTime: buildTime})
	buildinfo.HandleFlag() // "--version" prints the identity as JSON and exits 0

	libCommons.InitLocalEnvConfig()

	runner, err := bootstrap.InitHolderBackfill()
	if err != nil {
		// fmt is used here because the structured logger is initialized inside
		// InitHolderBackfill; this is the only place fmt output is acceptable.
		fmt.Fprintf(os.Stderr, "Failed to initialize holder backfill: %v\n", err)

		os.Exit(1)
	}

	ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
	defer stop()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…