Better contract
This commit is contained in:
parent
1203d9a18c
commit
b871a60c64
|
@ -25,11 +25,11 @@
|
|||
;; and subzone checks into prefix rather than suffix checks. It makes
|
||||
;; domain names into paths through the DNS DB tree.
|
||||
|
||||
;; RR Hash -> Hash
|
||||
;; RR CompiledZone -> CompiledZone
|
||||
(define (incorporate-rr rr db)
|
||||
(hash-set db (rr-name rr) (set-add (hash-ref db (rr-name rr) set) rr)))
|
||||
|
||||
;; Maybe<CompleteAnswer> Hash -> Hash
|
||||
;; Maybe<CompleteAnswer> CompiledZone -> CompiledZone
|
||||
(define (incorporate-complete-answer ans db)
|
||||
(match ans
|
||||
[#f db]
|
||||
|
|
Loading…
Reference in New Issue