Skip to content

Commit

Permalink
fix/v1.1.2: fix bug in bootstrapping (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsun0720 authored May 15, 2023
1 parent 2e6d6ec commit ad29f22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fbclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ func MakeCustomFBClient(envSecret string, streamingUrl string, eventUrl string,
if _, ok := client.dataSynchronizer.(*datasynchronization.NullDataSynchronizer); !ok {
log.LogInfo("FB GO SDK: waiting for Client initialization in %d milliseconds", config.StartWait/time.Millisecond)
}
if !client.dataUpdater.StorageInitialized() && !config.Offline {
log.LogWarn("FB GO SDK: SDK just returns default variation because of no data found in the given environment")
}
select {
case <-ready:
if !client.dataUpdater.StorageInitialized() && !config.Offline {
log.LogWarn("FB GO SDK: SDK just returns default variation because of no data found in the given environment")
}
if !client.dataSynchronizer.IsInitialized() {
log.LogWarn("FB GO SDK: SDK was not successfully initialized")
return client, initializationFailed
Expand Down

0 comments on commit ad29f22

Please sign in to comment.