Fix fetch telemetry report (#145)

This commit is contained in:
Igor Gov 2021-07-27 15:10:22 +03:00 committed by GitHub
parent d888706e1e
commit ffa34039b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ var fetchCmd = &cobra.Command{
Use: "fetch", Use: "fetch",
Short: "Download recorded traffic to files", Short: "Download recorded traffic to files",
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
go mizu.ReportRun("tap", mizuTapOptions) go mizu.ReportRun("fetch", mizuTapOptions)
if isCompatible, err := mizu.CheckVersionCompatibility(mizuFetchOptions.MizuPort); err != nil { if isCompatible, err := mizu.CheckVersionCompatibility(mizuFetchOptions.MizuPort); err != nil {
return err return err
} else if !isCompatible { } else if !isCompatible {