diff options
Diffstat (limited to 'ses.go')
-rw-r--r-- | ses.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -79,14 +79,18 @@ func (n *Node) Session() *Session { return s } -func (s *Session) Register(willReply bool, p ...interface{}) *Registration { +func (s *Session) register(willReply bool, p Tuple) *Registration { r := &Registration{} r.recv = s - r.pat = Tup(p...) + r.pat = p r.willReply = willReply return r } +func (s *Session) Register(willReply bool, p ...interface{}) *Registration { + return s.register(willReply, Tup(p...)) +} + func (s *Session) Close() { s.node.lock.Lock() s.node.unregMatch(func(r *Registration) bool { |