app/vmstorage: rename "transport" package to "servers" package for better clarity

This commit is contained in:
Aliaksandr Valialkin 2022-06-28 14:04:14 +03:00
parent 399d4c36ae
commit 36edb1912b
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import (
"sync"
"time"
"github.com/VictoriaMetrics/VictoriaMetrics/app/vmstorage/transport"
"github.com/VictoriaMetrics/VictoriaMetrics/app/vmstorage/servers"
"github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo"
"github.com/VictoriaMetrics/VictoriaMetrics/lib/envflag"
"github.com/VictoriaMetrics/VictoriaMetrics/lib/flagutil"
@ -104,11 +104,11 @@ func main() {
registerStorageMetrics(strg)
common.StartUnmarshalWorkers()
vminsertSrv, err := transport.NewVMInsertServer(*vminsertAddr, strg)
vminsertSrv, err := servers.NewVMInsertServer(*vminsertAddr, strg)
if err != nil {
logger.Fatalf("cannot create a server with -vminsertAddr=%s: %s", *vminsertAddr, err)
}
vmselectSrv, err := transport.NewVMSelectServer(*vmselectAddr, strg)
vmselectSrv, err := servers.NewVMSelectServer(*vmselectAddr, strg)
if err != nil {
logger.Fatalf("cannot create a server with -vmselectAddr=%s: %s", *vmselectAddr, err)
}

View File

@ -1,4 +1,4 @@
package transport
package servers
import (
"flag"

View File

@ -1,4 +1,4 @@
package transport
package servers
import (
"flag"