Skip to content

Conversation

codeskyblue
Copy link
Contributor

No description provided.

case entry := <-deviceEntryChan:
deviceList.DeviceList = append(deviceList.DeviceList, entry)
case <-time.After(100 * time.Millisecond):
return deviceList, nil
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is 100ms the only way to know we have reached the last device? such absolute timing can be random when dealing with services. what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

em.. do you have some better way?

}
}()
var deviceList = DeviceList{
DeviceList: make([]DeviceEntry, 0, 40),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was 34 a limit? and why put 40 as the new limit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most conditions, phone number is bellow 40 (from my experience).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants