make these methods privates

This commit is contained in:
Miek Gieben 2013-10-11 16:40:15 +00:00
parent ca3c488ad8
commit f9fa2d2c0c
1 changed files with 4 additions and 4 deletions

8
xfr.go
View File

@ -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()