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 != "" {
|
if attachment != "" {
|
||||||
request.AttachmentFilenames = []string{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.
|
// 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))
|
||||||
|
|
Loading…
Reference in a new issue