Skip to content
This repository was archived by the owner on Jun 11, 2023. It is now read-only.

Commit d15478c

Browse files
author
Oleg Noga
committed
docs
1 parent 74edf57 commit d15478c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.adoc

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ If consul or third party deregisters service, registration will be renewed"
99

1010
[source,clojure]
1111
----
12-
(start-heartbeat {:id "my-service" ; service id
12+
(start-heartbeat {:name "my-service" ; service name, required
13+
:id "[email protected]:8081" ; id must be unique for agent, defaults to service name
1314
:address "127.0.0.1" ; service remote address
1415
:port 8081
1516
:ttl "15s" ; timeout since last heartbeat to set critical state
@@ -30,7 +31,8 @@ Service will be registered if not registered yet.
3031

3132
[source,clojure]
3233
----
33-
(heartbeat {:id "my-service"
34+
(heartbeat {:name "my-service"
35+
:id "[email protected]:8081"
3436
:address "127.0.0.1"
3537
:port 8081
3638
:ttl "15s"

0 commit comments

Comments
 (0)