Move RendezvousMethod field to messages.Arg

This commit is contained in:
Anthony Chang 2024-01-29 18:24:25 -05:00 committed by Cecylia Bocovich
parent 26ceb6e20d
commit dbecefa7d2
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
6 changed files with 45 additions and 40 deletions

View file

@ -34,10 +34,11 @@ func ampClientOffers(i *IPC, w http.ResponseWriter, r *http.Request) {
encPollReq, err = amp.DecodePath(path)
if err == nil {
arg := messages.Arg{
Body: encPollReq,
RemoteAddr: "",
Body: encPollReq,
RemoteAddr: "",
RendezvousMethod: messages.RendezvousAmpCache,
}
err = i.ClientOffers(arg, &response, RendezvousAmpCache)
err = i.ClientOffers(arg, &response)
} else {
response, err = (&messages.ClientPollResponse{
Error: "cannot decode URL path",