Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit b115ae3

Browse files
committed
[TSD-116] Changes required on the cardano-sl side.
1 parent 08339e4 commit b115ae3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

infra/Pos/Infra/Reporting/Http.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE AllowAmbiguousTypes #-}
2-
31
module Pos.Infra.Reporting.Http
42
( sendReport
53
, sendReportNodeImpl
@@ -13,11 +11,13 @@ import Control.Exception.Safe (catchAny, try)
1311
import Data.Aeson (encode)
1412
import qualified Data.List.NonEmpty as NE
1513
import Data.Time.Clock (getCurrentTime)
14+
import Data.Version (showVersion)
1615
import Formatting (sformat, shown, string, (%))
1716
import Network.HTTP.Client (httpLbs, newManager, parseUrlThrow)
1817
import qualified Network.HTTP.Client.MultipartFormData as Form
1918
import Network.HTTP.Client.TLS (tlsManagerSettings)
20-
import Pos.ReportServer.Report (ReportInfo (..), ReportType (..))
19+
import Pos.ReportServer.Report (BackendVersion (..), ReportInfo (..), ReportType (..),
20+
Version (..))
2121
import System.FilePath (takeFileName)
2222
import System.Info (arch, os)
2323

@@ -26,7 +26,7 @@ import Pos.Crypto (ProtocolMagic (..))
2626
import Pos.Infra.Reporting.Exceptions (ReportingError (..))
2727
import Pos.Infra.Reporting.MemState ()
2828
import Pos.Util.CompileInfo (CompileTimeInfo)
29-
import Pos.Util.Trace (Trace, Severity (..), traceWith)
29+
import Pos.Util.Trace (Severity (..), Trace, traceWith)
3030
import Pos.Util.Util ((<//>))
3131

3232

@@ -69,7 +69,7 @@ sendReport pm compileInfo mLogFile reportType appName reportServerUri = do
6969
-- We are using version of 'cardano-sl-infra' here. We agreed
7070
-- that the version of 'cardano-sl' and it subpackages should
7171
-- be same.
72-
, rVersion = version
72+
, rVersion = BackendVersion . Version . fromString . showVersion $ version
7373
, rBuild = pretty compileInfo
7474
, rOS = toText (os <> "-" <> arch)
7575
, rMagic = getProtocolMagic pm

0 commit comments

Comments
 (0)