Skip to content

Commit

Permalink
feat(libsinsp/container_info): change default / init lookup state to …
Browse files Browse the repository at this point in the history
…FAILED

Signed-off-by: Melissa Kilby <[email protected]>
  • Loading branch information
incertum committed Mar 11, 2024
1 parent 5dc692e commit 317e83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userspace/libsinsp/container_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class sinsp_container_lookup
sinsp_container_lookup(short max_retry = 3, short max_delay_ms = 500):
m_max_retry(max_retry),
m_max_delay_ms(max_delay_ms),
m_state(state::SUCCESSFUL),
m_state(state::FAILED),
m_retry(0)
{
assert(max_retry >= 0);
Expand Down Expand Up @@ -132,7 +132,7 @@ class sinsp_container_lookup
private:
short m_max_retry;
short m_max_delay_ms;
state m_state = state::SUCCESSFUL;
state m_state = state::FAILED;
short m_retry;
};

Expand Down

0 comments on commit 317e83f

Please sign in to comment.