don't carry around the patchset files anymore
This commit is contained in:
parent
f171c458aa
commit
9025bf436a
|
@ -111,7 +111,7 @@ func savePatchset(w http.ResponseWriter, msg []byte) error {
|
|||
now := time.Now()
|
||||
// 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?
|
||||
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)
|
||||
if err != nil {
|
||||
log.Info("filename open error:", filename, err)
|
||||
|
|
Loading…
Reference in New Issue