Skip to content

Commit 219660a

Browse files
authored
Merge pull request #6798 from The-K-R-O-K/illia-malachyn/6642-ws-controller-error-handling
[Access] ws controller error handling
2 parents 941178d + 52210b9 commit 219660a

File tree

15 files changed

+1087
-468
lines changed

15 files changed

+1087
-468
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ generate-mocks: install-mock-generators
216216
mockery --name 'Storage' --dir=module/executiondatasync/tracker --case=underscore --output="module/executiondatasync/tracker/mock" --outpkg="mocktracker"
217217
mockery --name 'ScriptExecutor' --dir=module/execution --case=underscore --output="module/execution/mock" --outpkg="mock"
218218
mockery --name 'StorageSnapshot' --dir=fvm/storage/snapshot --case=underscore --output="fvm/storage/snapshot/mock" --outpkg="mock"
219-
mockery --name 'WebsocketConnection' --dir=engine/access/rest/websockets --case=underscore --output="engine/access/rest/websockets/mock" --outpkg="mock"
220219

221220
#temporarily make insecure/ a non-module to allow mockery to create mocks
222221
mv insecure/go.mod insecure/go2.mod

engine/access/rest/websockets/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,11 @@ const (
3434
type Config struct {
3535
MaxSubscriptionsPerConnection uint64
3636
MaxResponsesPerSecond uint64
37-
SendMessageTimeout time.Duration
38-
MaxRequestSize int64
3937
}
4038

4139
func NewDefaultWebsocketConfig() Config {
4240
return Config{
4341
MaxSubscriptionsPerConnection: 1000,
4442
MaxResponsesPerSecond: 1000,
45-
SendMessageTimeout: 10 * time.Second,
46-
MaxRequestSize: 1024,
4743
}
4844
}

0 commit comments

Comments
 (0)