From fce08283a2dc7d1254c0aafdec36efbe1eca3229 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 25 Jan 2024 09:02:49 -0500 Subject: [PATCH] fix: both clients need specific api paths --- storage/storage.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/storage/storage.go b/storage/storage.go index 4874d8e..9a419fa 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -160,12 +160,13 @@ func (s *StorageServiceImpl) Init() error { return err } - addrURL.Path = "/api" + addrURL.Path = "/api/worker" - addr = addrURL.String() + s.workerClient = workerClient.New(addrURL.String(), passwd) - s.workerClient = workerClient.New(addr, passwd) - s.busClient = busClient.New(addr, passwd) + addrURL.Path = "/api/bus" + + s.busClient = busClient.New(addrURL.String(), passwd) preUpload := func(hook tusd.HookEvent) (tusd.HTTPResponse, tusd.FileInfoChanges, error) { blankResp := tusd.HTTPResponse{}