Skip to content

Commit

Permalink
Merge pull request #3084 from nspcc-dev/wrkshp-upd
Browse files Browse the repository at this point in the history
examples, config: minor adjustments for workshop
  • Loading branch information
roman-khimov authored Aug 8, 2023
2 parents afa4530 + 4e6b1c4 commit 5fc61be
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/protocol.privnet.docker.four.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ApplicationConfiguration:
- ":30336"
MaxGasInvoke: 15
EnableCORSWorkaround: false
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:
Expand Down
1 change: 1 addition & 0 deletions config/protocol.privnet.docker.one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ApplicationConfiguration:
- ":30333"
MaxGasInvoke: 15
EnableCORSWorkaround: false
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:
Expand Down
1 change: 1 addition & 0 deletions config/protocol.privnet.docker.single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ ApplicationConfiguration:
- ":30333"
EnableCORSWorkaround: false
MaxGasInvoke: 15
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:
Expand Down
1 change: 1 addition & 0 deletions config/protocol.privnet.docker.three.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ApplicationConfiguration:
- ":30335"
MaxGasInvoke: 15
EnableCORSWorkaround: false
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:
Expand Down
1 change: 1 addition & 0 deletions config/protocol.privnet.docker.two.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ApplicationConfiguration:
EnableCORSWorkaround: false
Addresses:
- ":30334"
SessionEnabled: true
Prometheus:
Enabled: true
Addresses:
Expand Down
6 changes: 6 additions & 0 deletions examples/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5fc61be

Please sign in to comment.