diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-22 03:18:46 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-22 03:18:46 (GMT) |
commit | e40235206363f09a43723fd7af10ef66bcfa08a3 (patch) | |
tree | e00bd8861c3e460eaf64f98ade15d03006189c61 /src/helsinki.at/rhimportd/ctrlTelnet.go | |
parent | c0463be82447f269d9947d16a40881dbbe600827 (diff) |
session based callbacks work now
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlTelnet.go')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlTelnet.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlTelnet.go b/src/helsinki.at/rhimportd/ctrlTelnet.go index 687652c..74e396f 100644 --- a/src/helsinki.at/rhimportd/ctrlTelnet.go +++ b/src/helsinki.at/rhimportd/ctrlTelnet.go @@ -264,9 +264,10 @@ func (c *TelnetClient) handle_cmd_show(args []string) { } } -func telnet_progress_callback(step int, step_name string, progress float64, userdata interface{}) { +func telnet_progress_callback(step int, step_name string, progress float64, userdata interface{}) bool { out := userdata.(chan<- string) out <- fmt.Sprintf("%s: %3.2f%%\r", step_name, progress*100) + return true } func telnet_cmd_run(ctx rhimport.ImportContext, out chan<- string) { |