Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

refactor: eliminate duplication in nameserver query handlers #609

Merged
merged 3 commits into from
Apr 27, 2015

Conversation

rade
Copy link
Member

@rade rade commented Apr 26, 2015

No description provided.

rade added 3 commits April 26, 2015 11:20
increasing their similarity in preparation of refactor
in preparation of extracting common helper function
to remove duplication between queryHandler and rdnsHandler
@rade
Copy link
Member Author

rade commented Apr 26, 2015

It will likely be easier to review the individual commits instead of the entire diff.

func (s *DNSServer) rdnsHandler(proto dnsProtocol) dns.HandlerFunc {
fallback := s.notUsHandler(proto)
func (s *DNSServer) commonQueryHandler(proto dnsProtocol, kind string, qtype uint16,
zoneLookup func(ZoneLookup, *dns.Question, *dns.Msg) (*dns.Msg, []ZoneRecord, error), fallback dns.HandlerFunc) dns.HandlerFunc {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

inercia added a commit that referenced this pull request Apr 27, 2015
refactor: eliminate duplication in nameserver query handlers
@inercia inercia merged commit c2f55fc into weaveworks:master Apr 27, 2015
@rade rade modified the milestone: 0.11.0 May 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants