summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-30 19:23:52 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-30 19:23:52 (GMT)
commite84dd58a96c80847a18b4674f3ebb600d94227e1 (patch)
treebbb4efc0247db71c70b82a2c1d2d3ea3585bd63d /src/helsinki.at/rhimport
parenta81d48a3beef8b63fd19cc272a6388ad9e21bb4c (diff)
some cleanup
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
}
}