mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-23 05:57:19 +02:00
cache: join old memberlist cluster to warn about multiple servers (#1004)
This commit is contained in:
parent
05e3c23ea1
commit
35af5c0b91
2 changed files with 25 additions and 9 deletions
14
cache/cache.go
vendored
14
cache/cache.go
vendored
|
@ -31,9 +31,10 @@ type Cache struct {
|
|||
userServer *UserServer
|
||||
manager *manager.Manager
|
||||
|
||||
localListener net.Listener
|
||||
localGRPCServer *grpc.Server
|
||||
localGRPCConnection *grpc.ClientConn
|
||||
localListener net.Listener
|
||||
localGRPCServer *grpc.Server
|
||||
localGRPCConnection *grpc.ClientConn
|
||||
deprecatedCacheClusterDomain string //TODO: remove in v0.11
|
||||
}
|
||||
|
||||
// New creates a new cache service.
|
||||
|
@ -85,9 +86,10 @@ func New(opts config.Options) (*Cache, error) {
|
|||
userServer: userServer,
|
||||
manager: manager,
|
||||
|
||||
localListener: localListener,
|
||||
localGRPCServer: localGRPCServer,
|
||||
localGRPCConnection: localGRPCConnection,
|
||||
localListener: localListener,
|
||||
localGRPCServer: localGRPCServer,
|
||||
localGRPCConnection: localGRPCConnection,
|
||||
deprecatedCacheClusterDomain: opts.GetDataBrokerURL().Hostname(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue