Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
varungupta authored and varungupta committed Aug 26, 2024
1 parent c2bca1d commit e44af10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/plugins/gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ import (
"syscall"
"time"

ratelimiter "github.com/aibrix/aibrix/pkg/plugins/ratelimiter/rate_limiter"
routing "github.com/aibrix/aibrix/pkg/plugins/ratelimiter/routing_algorithms"
ratelimiter "github.com/aibrix/aibrix/pkg/plugins/gateway/rate_limiter"
routing "github.com/aibrix/aibrix/pkg/plugins/gateway/routing_algorithms"
redis "github.com/redis/go-redis/v9"
openai "github.com/sashabaranov/go-openai"
"go.etcd.io/etcd/server/v3/proxy/grpcproxy/cache"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down Expand Up @@ -499,6 +500,10 @@ func main() {
log.Fatalf("failed to listen: %v", err)
}

stopCh := make(chan struct{})
defer close(stopCh)
cache.NewCache(stopCh)

s := grpc.NewServer()

extProcPb.RegisterExternalProcessorServer(s, &server{
Expand Down

0 comments on commit e44af10

Please sign in to comment.