storj/storagenode/contact
paul cannon 1469f7f41f
storagenode/contact: wait for UpdateSelf before start (#3332)
When the contact chore starts running before the monitor service has
provided any useful capacity data, the first outgoing contact has
not-very-helpful data for the satellite. This change causes the contact
chore to wait until capacity data is available. The wait should be quite
short in all reasonable cases: even when a node starts with a lot of
stored pieces and no cached spaceUsedDB data, new data will have been
calculated and cached by the call to
`peer.Storage2.CacheService.Init(ctx)` in `storagenode.cmdRun()` before
`peer.Run(ctx)`.

Change-Id: Ibc26d5c1fc10a23006c00bc3f13ff6cf71f8bf1d
2019-10-26 12:16:25 -05:00
..
chore.go storagenode/contact: wait for UpdateSelf before start (#3332) 2019-10-26 12:16:25 -05:00
contact_test.go satellite/discovery: remove discovery related code (#3175) 2019-10-14 10:57:01 -04:00
endpoint.go storagenode/dashboard: update online status (#3168) 2019-10-03 20:31:39 +02:00
service.go storagenode/contact: wait for UpdateSelf before start (#3332) 2019-10-26 12:16:25 -05:00