more certificate cleanup

This commit is contained in:
Matthew R. Kasun
2022-04-25 06:38:20 -04:00
parent 8f8272aad7
commit a8b1d48e02
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ func Daemon() error {
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
wg.Add(1) wg.Add(1)
go Checkin(ctx, &wg, serverSet) go Checkin(ctx, &wg)
quit := make(chan os.Signal, 1) quit := make(chan os.Signal, 1)
signal.Notify(quit, syscall.SIGTERM, os.Interrupt) signal.Notify(quit, syscall.SIGTERM, os.Interrupt)
<-quit <-quit

View File

@@ -18,7 +18,7 @@ import (
// Checkin -- go routine that checks for public or local ip changes, publishes changes // Checkin -- go routine that checks for public or local ip changes, publishes changes
// if there are no updates, simply "pings" the server as a checkin // if there are no updates, simply "pings" the server as a checkin
func Checkin(ctx context.Context, wg *sync.WaitGroup, currentComms map[string]struct{}) { func Checkin(ctx context.Context, wg *sync.WaitGroup) {
defer wg.Done() defer wg.Done()
for { for {
select { select {