Skip to content

Commit

Permalink
[Mod] 更新版本号到1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Oct 18, 2022
1 parent eda3703 commit 8809280
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.3版本

1. 移除服务端的EVENT_TIMER定时事件推送

# 1.0.2版本

1. 添加变量类型声明
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-1.0.2-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-1.0.3-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-linux|windows|mac-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = vnpy_rpcservice
version = 1.0.2
version = 1.0.3
url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
Expand Down
4 changes: 3 additions & 1 deletion vnpy_rpcservice/rpc_service/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from vnpy.trader.engine import BaseEngine, MainEngine
from vnpy.trader.utility import load_json, save_json
from vnpy.trader.object import LogData
from vnpy.trader.event import EVENT_TIMER


APP_NAME = "RpcService"

Expand Down Expand Up @@ -110,7 +112,7 @@ def register_event(self) -> None:
def process_event(self, event: Event) -> None:
"""调用事件"""
if self.server.is_active():
if event.type == "eTimer":
if event.type == EVENT_TIMER:
return
self.server.publish("", event)

Expand Down

0 comments on commit 8809280

Please sign in to comment.