Commit b7d4bbb
authored
fix: add loading session for each encryption - improve encrypt func (#6)
* fix: add loading session for each encryption - improve encrypt func
fix issues caused by caching outdated session
* test: add tests for situation when session does not exist1 parent 17c6921 commit b7d4bbb
2 files changed
Lines changed: 194 additions & 257 deletions
File tree
- Sources/DXProtocol/Session
- Tests/DXProtocolTests/SessionTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
367 | 371 | | |
368 | 372 | | |
369 | 373 | | |
370 | | - | |
371 | 374 | | |
372 | 375 | | |
373 | 376 | | |
| |||
0 commit comments