GODT-1815: Focus service docs

This commit is contained in:
James Houlahan
2022-10-02 12:05:39 +02:00
parent e9672e6bba
commit d79e6f2704
2 changed files with 13 additions and 4 deletions

View File

@ -11,6 +11,8 @@ import (
"google.golang.org/protobuf/types/known/emptypb"
)
// TryRaise tries to raise the application by dialing the focus service.
// It returns true if the service is running and the application was told to raise.
func TryRaise() bool {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()