Skip to content

Commit 3affac9

Browse files
committed
Bump version to v1.23.0
1 parent d777899 commit 3affac9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

cmd/daze/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var Conf = struct {
2828
}{
2929
PathRule: "/rule.ls",
3030
PathCIDR: "/rule.cidr",
31-
Version: "v1.22.0",
31+
Version: "v1.23.0",
3232
}
3333

3434
const helpMsg = `Usage: daze <command> [<args>]

protocol/czar/mux.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (s *Stream) Write(p []byte) (int, error) {
8787
buf []byte
8888
l = 0
8989
n = 0
90-
z = 0
90+
z = 1
9191
)
9292
for {
9393
switch {
@@ -105,12 +105,9 @@ func (s *Stream) Write(p []byte) (int, error) {
105105
binary.BigEndian.PutUint16(buf[2:4], uint16(l))
106106
copy(buf[4:], p[:l])
107107
p = p[l:]
108-
z = func() int {
109-
if time.Now().After(s.qtw) {
110-
return 2
111-
}
112-
return 1
113-
}()
108+
if time.Now().After(s.qtw) {
109+
z = 2
110+
}
114111
err := s.mux.pri.Pri(z, func() error {
115112
if err := s.wer.Get(); err != nil {
116113
return err

0 commit comments

Comments
 (0)