Skip to content

Commit

Permalink
Fixing bug in savesnapshot upload
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpert committed Oct 9, 2022
1 parent f034004 commit e319328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot/db_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (n *NatsDBSnapshot) SaveSnapshot(conn *nats.Conn) error {
defer rfl.Close()

err = blb.Delete(FileName)
if err != nil {
if err != nil && err != nats.ErrObjectNotFound {
return err
}

Expand Down

0 comments on commit e319328

Please sign in to comment.