Skip to content
Snippets Groups Projects
Commit c99a6795 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix single-use json documentation

parent 8737a80c
No related branches found
No related tags found
1 merge request!510Release
...@@ -36,7 +36,7 @@ func TestSingleUseJsonMarshals(t *testing.T) { ...@@ -36,7 +36,7 @@ func TestSingleUseJsonMarshals(t *testing.T) {
sendReport := SingleUseSendReport{ sendReport := SingleUseSendReport{
RoundsList: rl, RoundsList: rl,
EphID: ephId.EphId.Int64(), EphID: ephId.EphId.Int64(),
ReceptionID: ephId.Source.Marshal(), ReceptionID: ephId.Source,
} }
srm, err := json.Marshal(sendReport) srm, err := json.Marshal(sendReport)
if err != nil { if err != nil {
...@@ -48,7 +48,7 @@ func TestSingleUseJsonMarshals(t *testing.T) { ...@@ -48,7 +48,7 @@ func TestSingleUseJsonMarshals(t *testing.T) {
responseReport := SingleUseResponseReport{ responseReport := SingleUseResponseReport{
RoundsList: rl, RoundsList: rl,
Payload: payload, Payload: payload,
ReceptionID: ephId.Source.Marshal(), ReceptionID: ephId.Source,
EphID: ephId.EphId.Int64(), EphID: ephId.EphId.Int64(),
Err: nil, Err: nil,
} }
...@@ -64,7 +64,7 @@ func TestSingleUseJsonMarshals(t *testing.T) { ...@@ -64,7 +64,7 @@ func TestSingleUseJsonMarshals(t *testing.T) {
Payload: payload, Payload: payload,
Partner: rid, Partner: rid,
EphID: ephId.EphId.Int64(), EphID: ephId.EphId.Int64(),
ReceptionID: ephId.Source.Marshal(), ReceptionID: ephId.Source,
} }
crm, err := json.Marshal(callbackReport) crm, err := json.Marshal(callbackReport)
if err != nil { if err != nil {
......
...@@ -352,7 +352,7 @@ func LookupUD(e2eID int, udContact []byte, cb UdLookupCallback, ...@@ -352,7 +352,7 @@ func LookupUD(e2eID int, udContact []byte, cb UdLookupCallback,
sr := SingleUseSendReport{ sr := SingleUseSendReport{
EphID: eid.EphId.Int64(), EphID: eid.EphId.Int64(),
ReceptionID: eid.Source.Marshal(), ReceptionID: eid.Source,
RoundsList: makeRoundsList(rids...), RoundsList: makeRoundsList(rids...),
} }
...@@ -434,7 +434,7 @@ func SearchUD(e2eID int, udContact []byte, cb UdSearchCallback, ...@@ -434,7 +434,7 @@ func SearchUD(e2eID int, udContact []byte, cb UdSearchCallback,
sr := SingleUseSendReport{ sr := SingleUseSendReport{
EphID: eid.EphId.Int64(), EphID: eid.EphId.Int64(),
ReceptionID: eid.Source.Marshal(), ReceptionID: eid.Source,
RoundsList: makeRoundsList(rids...), RoundsList: makeRoundsList(rids...),
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment