Skip to content

Commit

Permalink
add hb log
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Nov 16, 2024
1 parent c2e89dd commit f9fdf78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions create-resource.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go run cmd/ctrlc/ctrlc.go api create resource \
--workspace "569de0fb-6173-45b7-bb84-2f01b5e08075" \
--name "test" \
--identifier "test" \
--kind "test" \
--version "v1.0.0" \
--config test.value=idk \
--var "test=test"
1 change: 1 addition & 0 deletions pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func (a *Agent) heartbeatRoutine() {
for {
select {
case <-ticker.C:
log.Printf("Sending heartbeat to proxy")
heartbeat := payloads.AgentHeartbeatJson{
Type: payloads.AgentHeartbeatJsonTypeClientHeartbeat,
Timestamp: []time.Time{time.Now()}[0],
Expand Down

0 comments on commit f9fdf78

Please sign in to comment.