Skip to content

Commit f0f69da

Browse files
committed
fix: initial state
1 parent dbbfaf9 commit f0f69da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

v2/hcore/coreinfo.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ func (s *CoreService) CoreInfoListener(req *hcommon.Empty, stream grpc.ServerStr
3030
return err
3131
}
3232
defer static.coreInfoObserver.UnSubscribe(coreSub)
33-
33+
stream.Send(&CoreInfoResponse{
34+
CoreState: static.CoreState,
35+
MessageType: MessageType_EMPTY,
36+
Message: "",
37+
})
3438
for {
3539
select {
3640
case <-stream.Context().Done():

0 commit comments

Comments
 (0)