Rename Send() to SendRequest()

Eventually Send() will probably be a wrapper for messages with type send
This commit is contained in:
Finn 2018-10-08 17:51:56 -07:00
parent 6b277642cf
commit 86553ad5a1
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ var sendCmd = &cobra.Command{
if attachment != "" { if attachment != "" {
request.AttachmentFilenames = []string{attachment} request.AttachmentFilenames = []string{attachment}
} }
s.Send(request) s.SendRequest(request)
}, },
} }

View file

@ -43,8 +43,8 @@ func (s *Signald) Listen(c chan interface{}) {
} }
} }
// Send sends a request to signald. // SendRequest sends a request to signald. Mostly used interally.
func (s *Signald) Send(request Request) { func (s *Signald) SendRequest(request Request) {
b, err := json.Marshal(request) b, err := json.Marshal(request)
crash(err) crash(err)
log.Print("Sending ", string(b)) log.Print("Sending ", string(b))