comparison pkg/imports/ugm.go @ 5035:56c589f7435d

Enhance comments on implementations of StageDone()
author Tom Gottfried <tom@intevation.de>
date Fri, 20 Mar 2020 17:24:03 +0100
parents 59a99655f34d
children 6270951dda28
comparison
equal deleted inserted replaced
5034:59a99655f34d 5035:56c589f7435d
43 43
44 func (ugmJobCreator) Depends() [2][]string { return gmJobCreator{}.Depends() } 44 func (ugmJobCreator) Depends() [2][]string { return gmJobCreator{}.Depends() }
45 45
46 func (ugmJobCreator) AutoAccept() bool { return true } 46 func (ugmJobCreator) AutoAccept() bool { return true }
47 47
48 // StageDone is a NOP for gauge measurements imports.
48 func (ugmJobCreator) StageDone(context.Context, *sql.Tx, int64, Feedback) error { return nil } 49 func (ugmJobCreator) StageDone(context.Context, *sql.Tx, int64, Feedback) error { return nil }
49 50
50 // CleanUp removes the temporary files from the filesystem. 51 // CleanUp removes the temporary files from the filesystem.
51 func (ugm *UploadedGaugeMeasurement) CleanUp() error { return os.RemoveAll(ugm.Dir) } 52 func (ugm *UploadedGaugeMeasurement) CleanUp() error { return os.RemoveAll(ugm.Dir) }
52 53