Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 752ed0f

Browse files
authored
Merge pull request #555 from 0xProject/release/6.1.1-beta
Release version 6.1.1-beta
2 parents 9ea8cf7 + 66e75dc commit 752ed0f

File tree

12 files changed

+390
-382
lines changed

12 files changed

+390
-382
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This changelog is a work in progress and may contain notes for versions which have not actually been released. Check the [Releases](https://github.com/0xProject/0x-mesh/releases) page to see full release notes and more information about the latest released versions.
44

5+
## v6.1.1-beta
6+
7+
### Bug fixes 🐞
8+
9+
- Fixed a bug where the internal order event feed could be come blocked, rendering Mesh unable to receive any new orders or update existing ones ([#552](https://github.com/0xProject/0x-mesh/pull/552)).
10+
11+
512
## v6.1.0-beta
613

714
### Features ✅

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Version](https://img.shields.io/badge/version-6.1.0--beta-orange.svg)](https://github.com/0xProject/0x-mesh/releases)
1+
[![Version](https://img.shields.io/badge/version-6.1.1--beta-orange.svg)](https://github.com/0xProject/0x-mesh/releases)
22
[![Docs](https://img.shields.io/badge/docs-website-yellow.svg)](https://0x-org.gitbook.io/mesh)
33
[![Chat with us on Discord](https://img.shields.io/badge/chat-Discord-blueViolet.svg)](https://discord.gg/HF7fHwk)
44
[![Circle CI](https://img.shields.io/circleci/project/0xProject/0x-mesh/master.svg)](https://circleci.com/gh/0xProject/0x-mesh/tree/master)

browser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@0x/mesh-browser",
3-
"version": "6.1.0-beta",
3+
"version": "6.1.1-beta",
44
"description": "TypeScript and JavaScript bindings for running Mesh directly in the browser.",
55
"main": "./lib/index.js",
66
"license": "Apache-2.0",

cmd/mesh/rpc_handler.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ import (
2222
log "github.com/sirupsen/logrus"
2323
)
2424

25+
// orderEventsBufferSize is the buffer size for the orderEvents channel. If
26+
// the buffer is full, any additional events won't be processed.
27+
const orderEventsBufferSize = 8000
28+
2529
type rpcHandler struct {
2630
app *core.App
2731
}
@@ -209,8 +213,9 @@ func SetupOrderStream(ctx context.Context, app *core.App) (*ethrpc.Subscription,
209213
rpcSub := notifier.CreateSubscription()
210214

211215
go func() {
212-
orderEventsChan := make(chan []*zeroex.OrderEvent)
216+
orderEventsChan := make(chan []*zeroex.OrderEvent, orderEventsBufferSize)
213217
orderWatcherSub := app.SubscribeToOrderEvents(orderEventsChan)
218+
defer orderWatcherSub.Unsubscribe()
214219

215220
for {
216221
select {
@@ -237,7 +242,6 @@ func SetupOrderStream(ctx context.Context, app *core.App) (*ethrpc.Subscription,
237242
// error.
238243
if _, ok := err.(*net.OpError); ok {
239244
logEntry.Trace(message)
240-
orderWatcherSub.Unsubscribe()
241245
return
242246
}
243247
if strings.Contains(err.Error(), "write: broken pipe") {
@@ -249,13 +253,11 @@ func SetupOrderStream(ctx context.Context, app *core.App) (*ethrpc.Subscription,
249253
case err := <-rpcSub.Err():
250254
if err != nil {
251255
log.WithField("err", err).Error("rpcSub returned an error")
252-
orderWatcherSub.Unsubscribe()
253256
} else {
254257
log.Debug("rpcSub was closed without error")
255258
}
256259
return
257260
case <-notifier.Closed():
258-
orderWatcherSub.Unsubscribe()
259261
return
260262
}
261263
}

core/core.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const (
5353
defaultNonPollingEthRPCRequestBuffer = 82720
5454
// logStatsInterval is how often to log stats for this node.
5555
logStatsInterval = 5 * time.Minute
56-
version = "6.1.0-beta"
56+
version = "6.1.1-beta"
5757
)
5858

5959
// Note(albrow): The Config type is currently copied to browser/ts/index.ts. We

0 commit comments

Comments
 (0)