equal
deleted
inserted
replaced
40 // init metadata |
40 // init metadata |
41 cached_response->copy_metadata(new_response); |
41 cached_response->copy_metadata(new_response); |
42 |
42 |
43 // set EIDs |
43 // set EIDs |
44 new_response->mutable_source()->assign(local_eid); |
44 new_response->mutable_source()->assign(local_eid); |
45 new_response->mutable_dest()->assign(query->source()); |
45 new_response->mutable_dest()->assign(query->replyto()); |
46 new_response->mutable_replyto()->assign(query->dest()); |
46 new_response->mutable_replyto()->assign(cached_response->replyto()); |
47 |
47 |
48 // set expiry |
48 // set expiry |
49 new_response->set_expiration(query->expiration()); // TODO: check this is ok |
49 new_response->set_expiration(query->expiration()); // TODO: check this is ok |
50 |
50 |
51 // reset creation timestamp (seconds = now, seqno = id) |
51 // reset creation timestamp (seconds = now, seqno = id) |