Skip to content

Commit f2ac0f5

Browse files
committed
feat(heartbeat resource): cache json response body
1 parent ebd2aba commit f2ac0f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/pact_broker/diagnostic/resources/heartbeat.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def content_types_provided
1414
end
1515

1616
def to_json
17-
{
17+
@@json ||= {
1818
"ok" => true,
1919
"_links" => {
2020
"self" => {
@@ -23,7 +23,6 @@ def to_json
2323
}
2424
}.to_json
2525
end
26-
2726
end
2827
end
2928
end

0 commit comments

Comments
 (0)