Hi Fleet team, I am trying to understand the logic...
# fleet
w
Hi Fleet team, I am trying to understand the logic of collecting batch query of FleetDM, and kinda confused about the the code calculates the offset by query key shown below:
Copy code
if err := conn.Send("GETBIT", key, hostID); err != nil {
   return fmt.Errorf("getbit query targets: %w", err)
}
could u help to explain what does it do? same logic for underneath code
Copy code
if err := conn.Send("GET", sqlKeyPrefix+key); err != nil {
   return fmt.Errorf("get query sql: %w", err)
}
anyone could help?