Skip to content

Commit

Permalink
address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Sep 25, 2023
1 parent ac43bef commit ddc0c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbeat/processors/cache/mem_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func newMemStore(cfg config, id, typ string) *memStore {

func (c *memStore) String() string { return c.typ + ":" + c.id }

// add updates a the receiver for a new operation. It increases the reference
// add updates the receiver for a new operation. It increases the reference
// count for the receiver, and if the config is a put operation and has no
// previous put operation defined, the TTL, cap and effort will be set from
// cfg. add is safe for concurrent use.
Expand Down Expand Up @@ -148,7 +148,7 @@ func (c *memStore) dropFrom(stores *memStoreSet) {
c.mu.Unlock()
}

// Get return the cached value associated with the provided key. If there is
// Get returns the cached value associated with the provided key. If there is
// no value for the key, or the value has expired Get returns ErrNoData. Get
// is safe for concurrent use.
func (c *memStore) Get(key string) (any, error) {
Expand Down

0 comments on commit ddc0c59

Please sign in to comment.