Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
java: send strings because fuck this java binding
Browse files Browse the repository at this point in the history
  • Loading branch information
david415 committed Dec 16, 2017
1 parent 53b3e31 commit d09a1ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions java/session.go
Expand Up @@ -110,8 +110,8 @@ func (s *Session) Shutdown() {
}

// Send into the mix network
func (s *Session) Send(recipient, provider string, msg []byte) error {
messageID, err := s.session.Send(recipient, provider, msg)
func (s *Session) Send(recipient, provider string, msg string) error {
messageID, err := s.session.Send(recipient, provider, []byte(msg))
if err != nil {
return err
}
Expand All @@ -120,6 +120,6 @@ func (s *Session) Send(recipient, provider string, msg []byte) error {
}

// SendUnreliable into the mix network
func (s *Session) SendUnreliable(recipient, provider string, msg *[]byte) error {
return s.session.SendUnreliable(recipient, provider, *msg)
func (s *Session) SendUnreliable(recipient, provider string, msg string) error {
return s.session.SendUnreliable(recipient, provider, []byte(msg))
}

0 comments on commit d09a1ac

Please sign in to comment.