Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
morganleroi committed Jan 31, 2024
1 parent 1ef9f6b commit 624a150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public DefaultJsonSerializer(JsonSerializerSettings serializerSettings, ILoggerF
/// </summary>
/// <param name="obj">Object to be serialized.</param>
/// <returns>A JSON string.</returns>
public string Serialize<T>(T data)
public string Serialize(object data)
{
if (data is AbstractSchema schema)
{
Expand Down Expand Up @@ -57,8 +57,6 @@ public string Serialize<T>(T data)
return JsonConvert.SerializeObject(data, _serializerSettings);
}



public async Task<T> Deserialize<T>(Stream response)
{
var result = (T)await Deserialize(response, typeof(T)).ConfigureAwait(false);
Expand Down
2 changes: 1 addition & 1 deletion playground/csharp/PerformanceLegacy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// .WithBody(@"{ ""params"": "" "", ""query"": "" "", ""processingTimeMS"": ""2"", ""hitsPerPage"": ""2"", ""nbHits"": ""10"", ""page"": ""0"", ""nbPages"": ""5"", ""hits"": [ { ""firstname"": ""Jimmie"", ""lastname"": ""Barninger"", ""objectID"": ""433"" }, { ""firstname"": ""Warren"", ""lastname"": ""Speach"", ""objectID"": ""2"" } ] }")
// );

var client = new SearchClient(new SearchConfig("LEKUUYKIXX", "c73f12f9f4cf151f1922fd63788621fa"));
var client = new SearchClient(new SearchConfig("LEKUUYKIXX", "XXX"));
// {
// CustomHosts =
// [
Expand Down

0 comments on commit 624a150

Please sign in to comment.