From f9fa2d2c0cdd247c5afe3dc2fecc284e21bf4a2f Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 11 Oct 2013 16:40:15 +0000 Subject: [PATCH] make these methods privates --- xfr.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xfr.go b/xfr.go index 1dc90559..f31e17a4 100644 --- a/xfr.go +++ b/xfr.go @@ -49,17 +49,17 @@ func (t *Transfer) In(q *Msg, a string, env chan *Envelope) (err error) { return err } if q.Question[0].Qtype == TypeAXFR { - go t.InAxfr(q.Id, env) + go t.inAxfr(q.Id, env) return nil } if q.Question[0].Qtype == TypeIXFR { - go t.InAxfr(q.Id, env) + go t.inIxfr(q.Id, env) return nil } return nil // TODO(miek): some error } -func (t *Transfer) InAxfr(id uint16, c chan *Envelope) { +func (t *Transfer) inAxfr(id uint16, c chan *Envelope) { first := true defer t.Close() defer close(c) @@ -104,7 +104,7 @@ func (t *Transfer) InAxfr(id uint16, c chan *Envelope) { panic("dns: not reached") } -func (t *Transfer) InIxfr(id uint16, c chan *Envelope) { +func (t *Transfer) inIxfr(id uint16, c chan *Envelope) { serial := uint32(0) // The first serial seen is the current server serial first := true defer t.Close()