Skip to content

Commit

Permalink
fix(sms): Renamed gw (#70)
Browse files Browse the repository at this point in the history
Signed-off-by: Flc゛ <[email protected]>
  • Loading branch information
flc1125 authored Jan 15, 2024
1 parent 6141b19 commit fd5fe68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/sms/sms.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ type Message struct {
}

type Sms struct {
gw Provider
provider Provider
}

func New(gw Provider) *Sms {
func New(provider Provider) *Sms {
return &Sms{
gw: gw,
provider: provider,
}
}

func (s *Sms) Send(ctx context.Context, message *Message) error {
return s.gw.Send(ctx, message)
return s.provider.Send(ctx, message)
}

0 comments on commit fd5fe68

Please sign in to comment.