Rename Send() to SendRequest()
Eventually Send() will probably be a wrapper for messages with type send
This commit is contained in:
parent
6b277642cf
commit
86553ad5a1
2 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ var sendCmd = &cobra.Command{
|
|||
if attachment != "" {
|
||||
request.AttachmentFilenames = []string{attachment}
|
||||
}
|
||||
s.Send(request)
|
||||
s.SendRequest(request)
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -43,8 +43,8 @@ func (s *Signald) Listen(c chan interface{}) {
|
|||
}
|
||||
}
|
||||
|
||||
// Send sends a request to signald.
|
||||
func (s *Signald) Send(request Request) {
|
||||
// SendRequest sends a request to signald. Mostly used interally.
|
||||
func (s *Signald) SendRequest(request Request) {
|
||||
b, err := json.Marshal(request)
|
||||
crash(err)
|
||||
log.Print("Sending ", string(b))
|
||||
|
|
Loading…
Reference in a new issue