LogNet / grpc-spring-boot-starter

Spring Boot starter module for gRPC framework.
Apache License 2.0
2.23k stars 434 forks source link

not work with endless loop #134

Open freew01f opened 4 years ago

freew01f commented 4 years ago

my code used lettuce-core access redis streams for MQ but I listen by this way if I do like this the grpc server not start , how can I fix it ?

while (true) {       
                //block on stream for 1 min before retry
                List<StreamMessage<String, String>> messages = conn.sync()
                        .xreadgroup(consumer,
                                XReadArgs.Builder.count(1500).block(60000),
                                XReadArgs.StreamOffset.lastConsumed(streamName));

                executor.submit(() -> processMessage(messages);
        }
jvmlet commented 4 years ago

Sorry, it's hard to understand from your question what the problem is. Where this code snippet is taken from?