cleanup: Fix more build warnings in DataStreamSuite
Alot more
This commit is contained in:
1 parent
989d103eef
commit
bcd207f89e
118 files changed
+1812
-1597
No files matched your search
+3
-2
@@ -4,6 +4,8 @@ using BCG.Utilities.General;
|
||||
using Bts.PubSub;
|
||||
using Bts.SharedStreams.Tables;
|
||||
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
namespace bts {
|
||||
/// <summary>
|
||||
/// Gets the subscription and publication state for one
|
||||
@@ -46,12 +48,11 @@ namespace bts {
|
||||
var updates = _sub_core.get_updates(TimeSpan.Zero);
|
||||
//this is where the pubsub updates are converted to rows
|
||||
if (updates.Count() > 0) {
|
||||
int id = 0;
|
||||
foreach (var u in updates) {
|
||||
if (u.tag != _tag) {
|
||||
continue;
|
||||
}
|
||||
var tpsi_list = TagPubSubInfo.deserialize(u.data);
|
||||
var tpsi_list = TagPubSubInfo.deserialize(ExceptionAssert.NotNull(u.data));
|
||||
foreach (var tsi in tpsi_list) {
|
||||
_tag_map[tsi.tag] = tsi;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace bts
|
||||
private class TableState
|
||||
{
|
||||
public ViewStream table_stream;
|
||||
public IBlueTableSchema schema = null;
|
||||
public IBlueTableSchema? schema = null;
|
||||
public bool processed = false;
|
||||
public TableState(ViewStream table_stream_)
|
||||
{
|
||||
@@ -100,8 +100,7 @@ namespace bts
|
||||
{
|
||||
Log.assert(tag_name.StartsWith("DS_"));
|
||||
string table_name = tag_name.Remove(0, 3);
|
||||
TableState ts = null;
|
||||
if (!_table_map.TryGetValue(table_name, out ts))
|
||||
if (!_table_map.TryGetValue(table_name, out var ts))
|
||||
{
|
||||
ts = new TableState(new TableStream(table_name, _vsd));
|
||||
_table_map.Add(table_name, ts);
|
||||
|
||||
Reference in new issue
Block a user