statsig-io / erlang-sdk

The statsig feature flagging and experimentation library for erlang/elixir
ISC License
5 stars 2 forks source link

Fixes the syncing of events #22

Closed matt-hobbs-prima closed 1 year ago

matt-hobbs-prima commented 1 year ago

Fixes the genserver that doesn't handle the scheduling of the flushing events to statsig's api. The send_after call was being ignored or caught in the handle_info catch-all function. This PR adds the function to handle calls sent to the process with the atom handle_events, and then reschedules another call after FlushDelay millisecons

tore-statsig commented 1 year ago

Tested this offline as well, looks good