summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/helsinki.at/rhimportd/ctrlWebSocket.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWebSocket.go b/src/helsinki.at/rhimportd/ctrlWebSocket.go
index 9549311..7f4ae0d 100644
--- a/src/helsinki.at/rhimportd/ctrlWebSocket.go
+++ b/src/helsinki.at/rhimportd/ctrlWebSocket.go
@@ -180,7 +180,7 @@ func webSocketProgress(step int, stepName string, progress float64, userdata int
}
c := userdata.(chan<- rhimport.ProgressData)
select {
- case c <- rhimport.ProgressData{step, stepName, progress}:
+ case c <- rhimport.ProgressData{Step: step, StepName: stepName, Progress: progress}:
default:
}
return true
@@ -327,6 +327,4 @@ func webSocketHandler(conf *rhimport.Config, rddb *rhimport.RdDbChan, sessions *
reqchan <- *reqdata
}
}
-
- return
}