Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit fa2d93b

Browse files
author
Henry Wong
committed
[elastic] Remove the unused parameter.
Btw: Test go ci.
1 parent 81b8771 commit fa2d93b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/lsp/cmd/serve.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ func (s *Serve) Run(ctx context.Context, args ...string) error {
8484
go srv.Run(ctx)
8585
}
8686
if s.Address != "" {
87-
return lsp.RunElasticServerOnAddress(ctx, s.app.cache, s.Address, run)
87+
return lsp.RunElasticServerOnAddress(s.app.cache, s.Address, run)
8888
}
8989
if s.Port != 0 {
90-
return lsp.RunElasticServerOnPort(ctx, s.app.cache, s.Port, run)
90+
return lsp.RunElasticServerOnPort(s.app.cache, s.Port, run)
9191
}
9292
stream := jsonrpc2.NewHeaderStream(os.Stdin, os.Stdout)
9393
srv := lsp.NewElasticServer(s.app.cache, stream)

internal/lsp/elasticserver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ func NewElasticServer(cache source.Cache, stream jsonrpc2.Stream) *ElasticServer
6060

6161
// RunElasticServerOnPort starts an LSP server on the given port and does not exit.
6262
// This function exists for debugging purposes.
63-
func RunElasticServerOnPort(ctx context.Context, cache source.Cache, port int, h func(s *ElasticServer)) error {
64-
return RunElasticServerOnAddress(ctx, cache, fmt.Sprintf(":%v", port), h)
63+
func RunElasticServerOnPort(cache source.Cache, port int, h func(s *ElasticServer)) error {
64+
return RunElasticServerOnAddress(cache, fmt.Sprintf(":%v", port), h)
6565
}
6666

6767
// RunElasticServerOnAddress starts an LSP server on the given port and does not exit.
6868
// This function exists for debugging purposes.
69-
func RunElasticServerOnAddress(ctx context.Context, cache source.Cache, addr string, h func(s *ElasticServer)) error {
69+
func RunElasticServerOnAddress(cache source.Cache, addr string, h func(s *ElasticServer)) error {
7070
ln, err := net.Listen("tcp", addr)
7171
if err != nil {
7272
return err

0 commit comments

Comments
 (0)