sendgrid / sendgrid-go

The Official Twilio SendGrid Golang API Library
https://sendgrid.com
MIT License
984 stars 260 forks source link

chore: removed SetHost and shifted SetDataResidency to sendgrid.go #470

Closed tiwarishubham635 closed 11 months ago

tiwarishubham635 commented 11 months ago

Fixes

  1. Removed public SetHost() as it is not required for Go [SetDataResidency does exactly the same thing]
  2. Shifted SetDataResidency() to sendgrid.go since it is specific to that only. Earlier it was in base_interface.go which means if someone creates a twilio_email request, then also they would be able to access SetDataResidency() and overrides host. But that doesn't make sense since it is specific to sendgrid only.

Checklist

If you have questions, please file a support ticket.