Skip to content

Commit

Permalink
Remove unused flow initialization and update dependencies
Browse files Browse the repository at this point in the history
The `flow/init.go` file and lifecycle hooks were removed due to being obsolete. Updated relevant dependencies to version 0.18.13 for consistency. Minor cleanup adjustments were made in related scripts and modules.
  • Loading branch information
ehsannm committed Jan 17, 2025
1 parent 9afbdc3 commit 9c38447
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 61 deletions.
8 changes: 4 additions & 4 deletions contrib/go.sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA=
github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=
github.com/clubpay/ronykit/kit v0.18.12 h1:HL3JGkHkmc33s9Pv8XBu0FHdz/L0MXwwOJ/62GtxbUw=
github.com/clubpay/ronykit/kit v0.18.12/go.mod h1:SkgCVlETeCyZWAKG8uuo1VdsTALPYs3VPruwqZN97Cw=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.12 h1:3FLGZZ2DptZ5sw8oiJQnKH/MxtfmiSg9kVv3A0bxSZ0=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.12/go.mod h1:j6By+0FPRKQedmi/0bQJ+dKDCqaUJQmcDoioJkH27qM=
github.com/clubpay/ronykit/kit v0.18.13 h1:3hbarLXUIaemPQFilgryE9Q70LYweL1Ak9LPHr2BCCA=
github.com/clubpay/ronykit/kit v0.18.13/go.mod h1:SkgCVlETeCyZWAKG8uuo1VdsTALPYs3VPruwqZN97Cw=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.13 h1:4L+uydotX1XWO7PKIGQ81UWlx2juvfFJ58cM0nYB24o=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.13/go.mod h1:hzrspt0lwivxgWoKsbCvx6N/qxJqvh6BHTPtgj9pwf8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
33 changes: 0 additions & 33 deletions flow/init.go

This file was deleted.

15 changes: 1 addition & 14 deletions flow/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewSDK(
return sdk, nil
}

func (sdk *SDK) invoke(lc fx.Lifecycle) error {
func (sdk *SDK) invoke() error {
var err error
sdk.nsCli, err = client.NewNamespaceClient(client.Options{
HostPort: sdk.hostport,
Expand Down Expand Up @@ -84,19 +84,6 @@ func (sdk *SDK) invoke(lc fx.Lifecycle) error {
},
)

lc.Append(
fx.Hook{
OnStart: func(_ context.Context) error {
return sdk.w.Start()
},
OnStop: func(_ context.Context) error {
sdk.w.Stop()

return nil
},
},
)

return nil
}

Expand Down
1 change: 0 additions & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
go 1.22.5

use (
./async
./contrib
./example/ex-01-rpc
./example/ex-02-rest
Expand Down
16 changes: 8 additions & 8 deletions rony/go.sum
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA=
github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=
github.com/clubpay/ronykit/contrib v0.18.12 h1:10QfbM+ALDcqtlQU+r77XIJt+obIEZeD582iHc2LHIE=
github.com/clubpay/ronykit/contrib v0.18.12/go.mod h1:WDE2TAF5yx5hMlUOrj2RT0rWnOfJ9M9FCODkgXQb4/k=
github.com/clubpay/ronykit/kit v0.18.12 h1:HL3JGkHkmc33s9Pv8XBu0FHdz/L0MXwwOJ/62GtxbUw=
github.com/clubpay/ronykit/kit v0.18.12/go.mod h1:SkgCVlETeCyZWAKG8uuo1VdsTALPYs3VPruwqZN97Cw=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.12 h1:3FLGZZ2DptZ5sw8oiJQnKH/MxtfmiSg9kVv3A0bxSZ0=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.12/go.mod h1:j6By+0FPRKQedmi/0bQJ+dKDCqaUJQmcDoioJkH27qM=
github.com/clubpay/ronykit/stub v0.18.12 h1:89rJ9NRU1EnCd8X8HcsrwWZFPWK2mxjpiz+rmDShyAQ=
github.com/clubpay/ronykit/stub v0.18.12/go.mod h1:msRAl8Rw5ycP5yGgQrHU24U71K7VmE17mQlGErJBCQE=
github.com/clubpay/ronykit/contrib v0.18.13 h1:TGOm/omn+L83U2Tn02HB70q2t2J1OYctKcJiNkV7b28=
github.com/clubpay/ronykit/contrib v0.18.13/go.mod h1:uyH+M0Ta5DHefJI74X4J5GzR1Hw1Mz3n5iV6+6fSlk4=
github.com/clubpay/ronykit/kit v0.18.13 h1:3hbarLXUIaemPQFilgryE9Q70LYweL1Ak9LPHr2BCCA=
github.com/clubpay/ronykit/kit v0.18.13/go.mod h1:SkgCVlETeCyZWAKG8uuo1VdsTALPYs3VPruwqZN97Cw=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.13 h1:4L+uydotX1XWO7PKIGQ81UWlx2juvfFJ58cM0nYB24o=
github.com/clubpay/ronykit/std/gateways/fasthttp v0.18.13/go.mod h1:hzrspt0lwivxgWoKsbCvx6N/qxJqvh6BHTPtgj9pwf8=
github.com/clubpay/ronykit/stub v0.18.13 h1:klh+eh1WwlVnhkSXJzApgE/UeqIKip66gPnd43uaRek=
github.com/clubpay/ronykit/stub v0.18.13/go.mod h1:ky7p2rmKGgX+2IVLm1mrWdCMDkj8tf1M07VJSx5wtWc=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
2 changes: 1 addition & 1 deletion scripts/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ wd=$(pwd)


array1=(
contrib kit rony stub ronyup
contrib kit rony stub ronyup flow
std/gateways/fasthttp
std/gateways/fastws
std/gateways/silverhttp
Expand Down

0 comments on commit 9c38447

Please sign in to comment.