headscale/hscontrol/db
Kristoffer Dalby c957f893bd Return simple responses immediatly
This commit rearranges the poll handler to immediatly accept
updates and notify its peers and return, not travel down the
function for a bit. This reduces the DB calls and other
holdups that isnt necessary to send a "lite response", a
map response without peers, or accepting an endpoint update.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-09-19 10:20:21 -05:00
..
addresses.go Split code into modules 2023-05-26 12:24:50 +02:00
addresses_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
api_key.go introduce rw lock for db, ish... 2023-09-19 10:20:21 -05:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
db.go Remove database from Mapper 2023-09-19 10:20:21 -05:00
machine.go Return simple responses immediatly 2023-09-19 10:20:21 -05:00
machine_test.go Remove database from Mapper 2023-09-19 10:20:21 -05:00
preauth_keys.go introduce rw lock for db, ish... 2023-09-19 10:20:21 -05:00
preauth_keys_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
routes.go move MapResponse peer logic into function and reuse 2023-09-19 10:20:21 -05:00
routes_test.go Remove database from Mapper 2023-09-19 10:20:21 -05:00
suite_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
users.go introduce rw lock for db, ish... 2023-09-19 10:20:21 -05:00
users_test.go introduce rw lock for db, ish... 2023-09-19 10:20:21 -05:00