Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
dcf17987
Commit
dcf17987
authored
Feb 08, 2016
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some missing ForAwait()s
parent
050053a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ConnectionMultiplexer.cs
...change.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
+2
-2
LuaScript.cs
StackExchange.Redis/StackExchange/Redis/LuaScript.cs
+1
-1
No files found.
StackExchange.Redis/StackExchange/Redis/ConnectionMultiplexer.cs
View file @
dcf17987
...
...
@@ -1307,7 +1307,7 @@ internal async Task<bool> ReconfigureAsync(bool first, bool reconfigureAll, Text
// so we will get list of other nodes from this server using "CLUSTER NODES" command
// and try to connect to these other nodes in the next iteration
encounteredConnectedClusterServer
=
true
;
updatedClusterEndpointCollection
=
await
GetEndpointsFromClusterNodes
(
server
,
log
);
updatedClusterEndpointCollection
=
await
GetEndpointsFromClusterNodes
(
server
,
log
)
.
ForAwait
()
;
}
// set the server UnselectableFlags and update masters list
...
...
@@ -1465,7 +1465,7 @@ private async Task<EndPointCollection> GetEndpointsFromClusterNodes(ServerEndPoi
var
message
=
Message
.
Create
(-
1
,
CommandFlags
.
None
,
RedisCommand
.
CLUSTER
,
RedisLiterals
.
NODES
);
try
{
var
clusterConfig
=
await
ExecuteAsyncImpl
(
message
,
ResultProcessor
.
ClusterNodes
,
null
,
server
);
var
clusterConfig
=
await
ExecuteAsyncImpl
(
message
,
ResultProcessor
.
ClusterNodes
,
null
,
server
)
.
ForAwait
()
;
return
new
EndPointCollection
(
clusterConfig
.
Nodes
.
Select
(
node
=>
node
.
EndPoint
).
ToList
());
}
catch
(
Exception
ex
)
...
...
StackExchange.Redis/StackExchange/Redis/LuaScript.cs
View file @
dcf17987
...
...
@@ -200,7 +200,7 @@ public async Task<LoadedLuaScript> LoadAsync(IServer server, CommandFlags flags
throw
new
ArgumentOutOfRangeException
(
nameof
(
flags
),
"Loading a script cannot be FireAndForget"
);
}
var
hash
=
await
server
.
ScriptLoadAsync
(
ExecutableScript
,
flags
);
var
hash
=
await
server
.
ScriptLoadAsync
(
ExecutableScript
,
flags
)
.
ForAwait
()
;
return
new
LoadedLuaScript
(
this
,
hash
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment