Skip to content

Commit

Permalink
Merge pull request onflow#6798 from The-K-R-O-K/illia-malachyn/6642-w…
Browse files Browse the repository at this point in the history
…s-controller-error-handling

[Access] ws controller error handling
  • Loading branch information
peterargue authored Dec 27, 2024
2 parents 941178d + 52210b9 commit 219660a
Show file tree
Hide file tree
Showing 15 changed files with 1,087 additions and 468 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ generate-mocks: install-mock-generators
mockery --name 'Storage' --dir=module/executiondatasync/tracker --case=underscore --output="module/executiondatasync/tracker/mock" --outpkg="mocktracker"
mockery --name 'ScriptExecutor' --dir=module/execution --case=underscore --output="module/execution/mock" --outpkg="mock"
mockery --name 'StorageSnapshot' --dir=fvm/storage/snapshot --case=underscore --output="fvm/storage/snapshot/mock" --outpkg="mock"
mockery --name 'WebsocketConnection' --dir=engine/access/rest/websockets --case=underscore --output="engine/access/rest/websockets/mock" --outpkg="mock"

#temporarily make insecure/ a non-module to allow mockery to create mocks
mv insecure/go.mod insecure/go2.mod
Expand Down
4 changes: 0 additions & 4 deletions engine/access/rest/websockets/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,11 @@ const (
type Config struct {
MaxSubscriptionsPerConnection uint64
MaxResponsesPerSecond uint64
SendMessageTimeout time.Duration
MaxRequestSize int64
}

func NewDefaultWebsocketConfig() Config {
return Config{
MaxSubscriptionsPerConnection: 1000,
MaxResponsesPerSecond: 1000,
SendMessageTimeout: 10 * time.Second,
MaxRequestSize: 1024,
}
}
Loading

0 comments on commit 219660a

Please sign in to comment.