Skip to content

Commit

Permalink
CreateModel
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd committed Nov 16, 2023
1 parent 440a953 commit 3ac8040
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 53 deletions.
38 changes: 0 additions & 38 deletions pkg/bdb/migrate/mig003/manifest.go

This file was deleted.

15 changes: 0 additions & 15 deletions pkg/bdb/migrate/mig003/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ func createModel() func(*zerolog.Logger, *bolt.DB, *bolt.DB) error {
ctx := context.Background()

manifestBuf := new(bytes.Buffer)
if _, err := manifestBuf.WriteString(emptyManifest); err != nil {
return err
}

model, err := v3.Load(bytes.NewReader(manifestBuf.Bytes()))
if err != nil {
Expand All @@ -111,18 +108,6 @@ func createModel() func(*zerolog.Logger, *bolt.DB, *bolt.DB) error {
return err
}

fileName := manifestFilename(rwDB.Path(), "manifest.yaml")
w, err := os.Create(fileName)
if err != nil {
return err
}
defer w.Close()

if _, err := manifestBuf.WriteTo(w); err != nil {
return err
}

log.Info().Str("version", Version).Msgf("write base manifest: %s", fileName)
return nil
}
}
Expand Down

0 comments on commit 3ac8040

Please sign in to comment.