Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change remoteProcess to public #286

Open
lolizeppelin opened this issue Sep 22, 2022 · 1 comment
Open

change remoteProcess to public #286

lolizeppelin opened this issue Sep 22, 2022 · 1 comment

Comments

@lolizeppelin
Copy link

i want cache msg on gateway

like this

func (p *ProxyCacheService) RemoteProcess(
ctx context.Context,
server *cluster.Server,
a agent.Agent,
route *route.Route,
msg *message.Message,
) {

if msg.Type == message.Request {
	cacheData := CacheService.cached(ctxt, msg.ID)
	if cacheMsg != nil {
		a.GetSession().ResponseMID(ctx, msg.ID, cacheData)
		return
	}
}

p.RemoteService.RemoteProcess(ctx, server, a, route, msg)

}

change remoteProcess to RemoteProcess is better?

@bruce1125
Copy link
Contributor

If you do that this way, I think there will by some merge issues while updating pitaya version. I really suggest you to do these things on your own logic or by a pluggable module/component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants