Skip to content

Commit e1414c3

Browse files
committed
Updates
1 parent aba9816 commit e1414c3

File tree

17 files changed

+261
-294
lines changed

17 files changed

+261
-294
lines changed

SmartImage.Lib/Engines/BaseSearchEngine.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ public async Task<SearchResult> GetResultAsync(ImageQuery query)
4343
var task = Task.Run(delegate
4444
{
4545
Debug.WriteLine($"[info] {Name}: getting result async");
46+
var sw = Stopwatch.StartNew();
4647

4748
var res = GetResult(query);
48-
49-
Debug.WriteLine($"[success] {Name}: result done");
49+
50+
sw.Stop();
51+
52+
Debug.WriteLine($"[success] {Name}: result done {sw.Elapsed.TotalSeconds}");
5053

5154
return res;
5255
});

SmartImage.Lib/Engines/Impl/ImgOpsEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private Uri UploadInternal(string path)
3737

3838
public int MaxSize => 5;
3939

40-
public Uri? Upload(string img)
40+
public Uri Upload(string img)
4141
{
4242
if (string.IsNullOrWhiteSpace(img)) {
4343
throw new ArgumentNullException(nameof(img));

SmartImage.Lib/Engines/Impl/Other/KarmaDecayEngine.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ namespace SmartImage.Lib.Engines.Impl.Other
33
public sealed class KarmaDecayEngine : BaseSearchEngine
44
{
55
public KarmaDecayEngine() : base("http://karmadecay.com/search/?q=") { }
6-
7-
86

97
public override SearchEngineOptions Engine => SearchEngineOptions.KarmaDecay;
108
}

0 commit comments

Comments
 (0)