aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/manager.go')
-rw-r--r--modules/private/manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/manager.go b/modules/private/manager.go
index de46c7ab2c..503acf17d6 100644
--- a/modules/private/manager.go
+++ b/modules/private/manager.go
@@ -15,7 +15,7 @@ import (
// Shutdown calls the internal shutdown function
func Shutdown() (int, string) {
- reqURL := setting.LocalURL + fmt.Sprintf("api/internal/manager/shutdown")
+ reqURL := setting.LocalURL + "api/internal/manager/shutdown"
req := newInternalRequest(reqURL, "POST")
resp, err := req.Response()
@@ -33,7 +33,7 @@ func Shutdown() (int, string) {
// Restart calls the internal restart function
func Restart() (int, string) {
- reqURL := setting.LocalURL + fmt.Sprintf("api/internal/manager/restart")
+ reqURL := setting.LocalURL + "api/internal/manager/restart"
req := newInternalRequest(reqURL, "POST")
resp, err := req.Response()
@@ -57,7 +57,7 @@ type FlushOptions struct {
// FlushQueues calls the internal flush-queues function
func FlushQueues(timeout time.Duration, nonBlocking bool) (int, string) {
- reqURL := setting.LocalURL + fmt.Sprintf("api/internal/manager/flush-queues")
+ reqURL := setting.LocalURL + "api/internal/manager/flush-queues"
req := newInternalRequest(reqURL, "POST")
if timeout > 0 {