comparison pkg/imports/stsh.go @ 5034:59a99655f34d

Added feedback support for StageDone.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 20 Mar 2020 12:28:04 +0100
parents e4ab338e7ba9
children 6270951dda28
comparison
equal deleted inserted replaced
5033:13d9820c1ea4 5034:59a99655f34d
77 // StageDone is merely the same as for the normal stretch import. 77 // StageDone is merely the same as for the normal stretch import.
78 func (stshJobCreator) StageDone( 78 func (stshJobCreator) StageDone(
79 ctx context.Context, 79 ctx context.Context,
80 tx *sql.Tx, 80 tx *sql.Tx,
81 id int64, 81 id int64,
82 feedback Feedback,
82 ) error { 83 ) error {
83 return stJobCreator{}.StageDone(ctx, tx, id) 84 return stJobCreator{}.StageDone(ctx, tx, id, feedback)
84 } 85 }
85 86
86 // CleanUp removes the folder with the uploaded shape file. 87 // CleanUp removes the folder with the uploaded shape file.
87 func (stsh *StretchShape) CleanUp() error { 88 func (stsh *StretchShape) CleanUp() error {
88 return os.RemoveAll(stsh.Dir) 89 return os.RemoveAll(stsh.Dir)