Skip to content

Commit

Permalink
Rename occured to created
Browse files Browse the repository at this point in the history
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
  • Loading branch information
dborovcanin committed Apr 27, 2020
1 parent f9f8330 commit 22193d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coap/api/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func receive(svc coap.Service, msg *gocoap.Message) *gocoap.Message {
return res
}

occured, err := ptypes.TimestampProto(time.Now())
created, err := ptypes.TimestampProto(time.Now())
if err != nil {
return nil
}
Expand All @@ -236,7 +236,7 @@ func receive(svc coap.Service, msg *gocoap.Message) *gocoap.Message {
Publisher: publisher,
Protocol: protocol,
Payload: msg.Payload,
Created: occured,
Created: created,
}

if err := svc.Publish(m); err != nil {
Expand Down

0 comments on commit 22193d1

Please sign in to comment.