File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -408,11 +408,6 @@ func server() *cobra.Command {
408
408
errCh <- wg .Wait ()
409
409
}()
410
410
411
- // This is helpful for tests, but can be silently ignored.
412
- // Coder may be ran as users that don't have permission to write in the homedir,
413
- // such as via the systemd service.
414
- _ = config .URL ().Write (client .URL .String ())
415
-
416
411
hasFirstUser , err := client .HasFirstUser (cmd .Context ())
417
412
if ! hasFirstUser && err == nil {
418
413
cmd .Println ()
@@ -442,6 +437,12 @@ func server() *cobra.Command {
442
437
stopChan := make (chan os.Signal , 1 )
443
438
defer signal .Stop (stopChan )
444
439
signal .Notify (stopChan , os .Interrupt )
440
+
441
+ // This is helpful for tests, but can be silently ignored.
442
+ // Coder may be ran as users that don't have permission to write in the homedir,
443
+ // such as via the systemd service.
444
+ _ = config .URL ().Write (client .URL .String ())
445
+
445
446
select {
446
447
case <- cmd .Context ().Done ():
447
448
coderAPI .Close ()
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ func (api *API) ListenProvisionerDaemon(ctx context.Context) (client proto.DRPCP
96
96
},
97
97
})
98
98
go func () {
99
- err = server .Serve (ctx , serverSession )
99
+ err : = server .Serve (ctx , serverSession )
100
100
if err != nil && ! xerrors .Is (err , io .EOF ) {
101
101
api .Logger .Debug (ctx , "provisioner daemon disconnected" , slog .Error (err ))
102
102
}
You can’t perform that action at this time.
0 commit comments