From 00a6ebaf5f364112e35d5c2de3d79a1a67ac222c Mon Sep 17 00:00:00 2001 From: Tarso Jabbes <60106453+tarsojabbes@users.noreply.github.com> Date: Mon, 8 Apr 2024 09:44:19 -0300 Subject: [PATCH] Fix: Set defaultInterval as const --- content/en/docs/collector/building/receiver.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/en/docs/collector/building/receiver.md b/content/en/docs/collector/building/receiver.md index 7a5f9f9d2ff4..5d893647973a 100644 --- a/content/en/docs/collector/building/receiver.md +++ b/content/en/docs/collector/building/receiver.md @@ -399,6 +399,9 @@ Go ahead and add the following code to your `factory.go` file: ```go var ( typeStr = component.MustNewType("tailtracer") +) + +const ( defaultInterval = 1 * time.Minute ) ``` @@ -435,6 +438,9 @@ import ( var ( typeStr = component.MustNewType("tailtracer") +) + +const ( defaultInterval = 1 * time.Minute ) @@ -546,6 +552,9 @@ import ( var ( typeStr = component.MustNewType("tailtracer") +) + +const ( defaultInterval = 1 * time.Minute ) @@ -885,6 +894,9 @@ import ( var ( typeStr = component.MustNewType("tailtracer") +) + +const ( defaultInterval = 1 * time.Minute )