Fix spelling errors in comments and documentation (#7492)
This commit is contained in:
@@ -254,7 +254,7 @@ func (s *SnmpTrap) lookup(oid string) (e mibEntry, err error) {
|
||||
defer s.cacheLock.Unlock()
|
||||
var ok bool
|
||||
if e, ok = s.cache[oid]; !ok {
|
||||
// cache miss. exec snmptranlate
|
||||
// cache miss. exec snmptranslate
|
||||
e, err = s.snmptranslate(oid)
|
||||
if err == nil {
|
||||
s.cache[oid] = e
|
||||
|
||||
@@ -84,7 +84,7 @@ func TestReceiveTrap(t *testing.T) {
|
||||
version gosnmp.SnmpVersion
|
||||
trap gosnmp.SnmpTrap // include pdus
|
||||
|
||||
// recieve
|
||||
// receive
|
||||
entries []entry
|
||||
metrics []telegraf.Metric
|
||||
}{
|
||||
|
||||
Reference in New Issue
Block a user