Merge pull request #3084 from nspcc-dev/wrkshp-upd

examples, config: minor adjustments for workshop
This commit is contained in:
Roman Khimov 2023-08-08 22:54:20 +03:00 committed by GitHub
commit 5fc61be5f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 0 deletions

View file

@ -73,6 +73,7 @@ ApplicationConfiguration:
- ":30336"
MaxGasInvoke: 15
EnableCORSWorkaround: false
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:

View file

@ -73,6 +73,7 @@ ApplicationConfiguration:
- ":30333"
MaxGasInvoke: 15
EnableCORSWorkaround: false
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:

View file

@ -64,6 +64,7 @@ ApplicationConfiguration:
- ":30333"
EnableCORSWorkaround: false
MaxGasInvoke: 15
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:

View file

@ -73,6 +73,7 @@ ApplicationConfiguration:
- ":30335"
MaxGasInvoke: 15
EnableCORSWorkaround: false
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:

View file

@ -73,6 +73,7 @@ ApplicationConfiguration:
EnableCORSWorkaround: false
Addresses:
- ":30334"
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:

View file

@ -54,3 +54,9 @@ func Find(value []byte) []string {
}
return result
}
// FindReturnIter returns an iterator over key-value pairs with the key that has the specified prefix.
func FindReturnIter(prefix []byte) iterator.Iterator {
iter := storage.Find(ctx, prefix, storage.None)
return iter
}