Skip to content

Commit

Permalink
Merge pull request #29 from loopholelabs/staging
Browse files Browse the repository at this point in the history
v0.7.2
  • Loading branch information
ShivanshVij authored Dec 10, 2022
2 parents 332d04e + 5127abf commit c5eb4d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v0.7.2] - 2022-12-10

### Fixes

- Fixed a bug where stream handlers would be generated for a proto file without streams

## [v0.7.1] - 2022-12-10

### Changes
Expand Down Expand Up @@ -47,7 +53,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

> Changelogs for [v0.5.0] and before can be found at https://github.com/loopholelabs/frisbee-go
[unreleased]: https://github.com/loopholelabs/frpc-go/compare/v0.7.1...HEAD
[unreleased]: https://github.com/loopholelabs/frpc-go/compare/v0.7.2...HEAD
[v0.7.2]: https://github.com/loopholelabs/frpc-go/releases/tag/v0.7.2
[v0.7.1]: https://github.com/loopholelabs/frpc-go/releases/tag/v0.7.1
[v0.7.0]: https://github.com/loopholelabs/frpc-go/releases/tag/v0.7.0
[v0.6.0]: https://github.com/loopholelabs/frpc-go/releases/tag/v0.6.0
Expand Down
4 changes: 3 additions & 1 deletion templates/server.templ
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewServer({{ GetServerFields .services }}, tlsConfig *tls.Config, logger *z
}
}


{{ if .numStreamMethods -}}
fsrv.SetStreamHandler(func(conn *frisbee.Async, stream *frisbee.Stream) {
p, err := stream.ReadPacket()
if err != nil {
Expand Down Expand Up @@ -80,6 +80,8 @@ func NewServer({{ GetServerFields .services }}, tlsConfig *tls.Config, logger *z
}
})

{{ end -}}

fsrv.ConnContext = func (ctx context.Context, conn *frisbee.Async) context.Context {
return context.WithValue(ctx, connectionContextKey, conn)
}
Expand Down

0 comments on commit c5eb4d2

Please sign in to comment.