• Michael Schurter's avatar
    client: register before restoring · 796c05b9
    Michael Schurter authored
    Registration and restoring allocs don't share state or depend on each
    other in any way (syncing allocs with servers is done outside of
    registration).
    
    Since restoring is synchronous, start the registration goroutine first.
    
    For nodes with lots of allocs to restore or close to their heartbeat
    deadline, this could be the difference between becoming "lost" or not.
    796c05b9
client.go 67.91 KiB