Skip to content

Commit 5bd5549

Browse files
committed
small fixes
1 parent 9228426 commit 5bd5549

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

engine/plugins/dns/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (d *dnsPlugin) Start(r et.Registry) error {
160160
Name: d.reverse.name,
161161
Position: 8,
162162
Exclusive: true,
163-
MaxInstances: support.MinHandlerInstances,
163+
MaxInstances: support.MidHandlerInstances,
164164
Transforms: []string{string(oam.FQDN)},
165165
EventType: oam.IPAddress,
166166
Callback: d.reverse.check,

engine/plugins/whois/fqdn_lookup.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ func (r *fqdnLookup) lookup(e *et.Event, name string, since time.Time) *dbt.Enti
8585
}
8686
}
8787
}
88-
8988
return nil
9089
}
9190

@@ -111,12 +110,10 @@ func (r *fqdnLookup) query(e *et.Event, name string, fent *dbt.Entity, src *et.S
111110
func (r *fqdnLookup) whoisRoutine(sess et.Session, name string, ch chan string) {
112111
resp, err := whoisclient.Whois(name)
113112
if err != nil {
113+
resp = ""
114114
msg := fmt.Sprintf("failed to acquire the WHOIS record for %s", name)
115115
sess.Log().Error(msg, slog.Group("plugin", "name", r.plugin.name, "handler", r.name))
116-
ch <- ""
117-
return
118116
}
119-
120117
ch <- resp
121118
}
122119

0 commit comments

Comments
 (0)