summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport
diff options
context:
space:
mode:
Diffstat (limited to 'src/helsinki.at/rhimport')
-rw-r--r--src/helsinki.at/rhimport/session.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helsinki.at/rhimport/session.go b/src/helsinki.at/rhimport/session.go
index 94ce66a..36e7938 100644
--- a/src/helsinki.at/rhimport/session.go
+++ b/src/helsinki.at/rhimport/session.go
@@ -67,9 +67,9 @@ type SessionDoneCB struct {
}
type ProgressData struct {
- step int
- step_name string
- progress float64
+ Step int
+ StepName string
+ Progress float64
}
type sessionAddProgressHandlerResponse struct {
@@ -159,7 +159,7 @@ func (self *Session) addDoneHandler(userdata interface{}, cb func(ImportResult,
func (self *Session) callProgressHandler(p *ProgressData) {
for _, cb := range self.progressCBs {
if cb.cb != nil {
- if keep := cb.cb(p.step, p.step_name, p.progress, cb.userdata); !keep {
+ if keep := cb.cb(p.Step, p.StepName, p.Progress, cb.userdata); !keep {
cb.cb = nil
}
}