aboutsummaryrefslogtreecommitdiff
path: root/desire.go
diff options
context:
space:
mode:
Diffstat (limited to 'desire.go')
-rw-r--r--desire.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/desire.go b/desire.go
index 249c59a..9ea5121 100644
--- a/desire.go
+++ b/desire.go
@@ -30,8 +30,8 @@ func NewDesire(altnames []string, size int) (*Desire, error) {
}, nil
}
-func (d *Desire) RegisterSolver(c ChalType, s Solver) {
- d.solver[c] = s
+func (d *Desire) RegisterSolver(s Solver) {
+ d.solver[s.Type()] = s
}
func (d *Desire) HasSolver() bool {