don't carry around the patchset files anymore

This commit is contained in:
Jeff Carr 2025-08-28 19:22:03 -05:00
parent f171c458aa
commit 9025bf436a
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func savePatchset(w http.ResponseWriter, msg []byte) error {
now := time.Now() now := time.Now()
// timestamp := now.Format("2022.07.18.190545") // 50yr shout out to K&R // timestamp := now.Format("2022.07.18.190545") // 50yr shout out to K&R
timestamp := now.Format("2006.01.02.150405") // bummer. other date doesn't work? timestamp := now.Format("2006.01.02.150405") // bummer. other date doesn't work?
filename := filepath.Join(LIBDIR, "patchset/", timestamp+".submitted.pb") filename := filepath.Join(LIBDIR, "patchset.archive/", timestamp+".submitted.pb")
regfile, err := os.OpenFile(filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666) regfile, err := os.OpenFile(filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
if err != nil { if err != nil {
log.Info("filename open error:", filename, err) log.Info("filename open error:", filename, err)